Opus Motion ★ Star on GitHub

Worlds · lightning-flash

Lightning flash relight

A rainy night house scene is relit by lightning: a forked bolt draws on, the frame flashes to a pink storm-lit plate for 2 frames and decays back to night in ~0.3 s; repeatable, with double strikes. Overlay-capable.

A free, MIT-licensed animated background from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Lightning flash relight: three frames of the animated background, start, middle and end
Lightning flash relight — start, middle and end of the 5.0-second motion.

What Lightning flash relight is for

Drama, shock, revelation or horror punctuation; a storm establishing shot; overlay the flash + bolt on any night footage.

  • weather
  • storm
  • lightning
  • night
  • flash
  • drama
  • overlay

Details

Category
Animated worlds & backdrops
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
background boltColor glowColor flashColor
Mood
dark, nature, night
Roles
backdrop, accent
Pairs with
Rain, Stamp slam + keyword pop, Glitch image bursts

Use Lightning flash relight in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add lightning-flash --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lightning-flash --props '{"background":"#04080F","boltColor":"#FFFFFF","glowColor":"#C9A8FF","flashColor":"#E8C6E0"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lightning-flash --as webm-alpha --props '{"background":"#04080F","boltColor":"#FFFFFF","glowColor":"#C9A8FF","flashColor":"#E8C6E0"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="lightning-flash"
  props={{
    background: '#04080F',
    boltColor: '#FFFFFF',
    glowColor: '#C9A8FF',
    flashColor: '#E8C6E0',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="lightning-flash"
  props='{"background":"#04080F","boltColor":"#FFFFFF","glowColor":"#C9A8FF","flashColor":"#E8C6E0"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lightning-flash",
      "props": {
        "background": "#04080F",
        "boltColor": "#FFFFFF",
        "glowColor": "#C9A8FF",
        "flashColor": "#E8C6E0"
      }
    }
  ]
}

Lightning flash relight props

13 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
background"#04080F"CSS background; "transparent" = overlay (bolt + screen flash + rain only)
backdroptruepaint the night house scene and its lit plate
strikes[28,104]frames where lightning strikes
sheetFlashes[66]frames of distant cloud-only flickers (no bolt, ~0.35 intensity)
holdFrames2frames the flash holds at full brightness
decay0.1exponential decay time constant in seconds (0.1 = source)
doubleStriketruesecond flash 3 frames after the hold at 0.6 intensity
raintruerain streaks (brighten during the flash)
boltColor"#FFFFFF"bolt core colour
glowColor"#C9A8FF"bolt glow colour
flashColor"#E8C6E0"overlay-mode flash tint
shake6camera jolt in px on strike frames
seed1random seed (changes bolt shapes)

Notes & credits

Technique sources:

  • video16 52.72-53.20, 80.72-81.10