Opus Motion ★ Star on GitHub

Worlds · fireworks

Fireworks

Staggered fireworks over a night city: a faint launch streak climbs, a white flash ball holds for a few frames, then a peony of sparks expands with an ease-out-cubic, droops under gravity, fades from the core out and twinkles away, while a warm global light pulse briefly lifts the whole scene.

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

Fireworks: three frames of the animated background, start, middle and end
Fireworks — start, middle and end of the 7.0-second motion.

What Fireworks is for

Celebrations, launches, milestones, "it worked!" beats, festive end cards.

  • fireworks
  • celebration
  • night
  • burst
  • party
  • flash

Details

Category
Animated worlds & backdrops
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
colors tint
Mood
dark, playful, night
Roles
backdrop
Pairs with
City skyline (window flicker, dusk to night), Number counter, Mask-rise title, Neon sign ignite

Use Fireworks in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render fireworks --props '{"colors":["#ffcf73","#ff7aa8","#8fd3ff","#ffd27a","#b6ff8f","#ff9a5a"],"tint":"#FFC48A"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export fireworks --as webm-alpha --props '{"colors":["#ffcf73","#ff7aa8","#8fd3ff","#ffd27a","#b6ff8f","#ff9a5a"],"tint":"#FFC48A"}'

React / Next.js

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

<MotionPlayer
  motion="fireworks"
  props={{
    colors: ['#ffcf73', '#ff7aa8', '#8fd3ff', '#ffd27a', '#b6ff8f', '#ff9a5a'],
    tint: '#FFC48A',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="fireworks"
  props='{"colors":["#ffcf73","#ff7aa8","#8fd3ff","#ffd27a","#b6ff8f","#ff9a5a"],"tint":"#FFC48A"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "fireworks",
      "props": {
        "colors": [
          "#ffcf73",
          "#ff7aa8",
          "#8fd3ff",
          "#ffd27a",
          "#b6ff8f",
          "#ff9a5a"
        ],
        "tint": "#FFC48A"
      }
    }
  ]
}

Fireworks props

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

PropDefaultWhat it does
count6number of shells
every30frames between launches
firstAt4frame of the first launch
sparkCount170sparks per burst
radius195burst radius in u (195 = 18 % of a 1080 frame)
colors["#ffcf73","#ff7aa8","#8fd3ff","#ffd27a","#b6ff8f","#ff9a5a"]spark colours, one per shell (cycled)
launchFrames12launch streak duration
flashFrames3frames the white flash ball holds
expandFrames27burst expansion (ease-out cubic)
fadeFrames30extra frames for the sparks to fade and twinkle out
lightPulse0.3peak opacity of the warm global light pulse
tint"#FFC48A"light pulse colour (screen blend)
scenetruepaint the night sky + city (false = transparent overlay)
seed"festival"random seed

Notes & credits

scene:false = transparent bursts over your own scene (use blend screen).

Technique sources:

  • video13 1:02-1:04 firework-burst
  • video13 1:05 scene-light-flash