Opus Motion ★ Star on GitHub

Game & sports · pixel-reward-burst

Pixel reward burst

A pixel treasure chest shakes while the view steps in by whole-number zooms (x6, x8, x10, x12) with "?" and "!" bubbles and two lid hops, then bursts open: palette flash, a rotating fan of dithered light rays that grows and collapses in stepped drops, a ballistic coin fountain and a gem that rises and glows.

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

Pixel reward burst: three frames of the game graphic, start, middle and end
Pixel reward burst — start, middle and end of the 4.0-second motion.

What Pixel reward burst is for

Unlock / reward / reveal beats in gamified product videos, giveaways and "new feature" reveals.

  • pixel
  • pixel art
  • reward
  • chest
  • treasure
  • loot
  • unlock
  • coins
  • rays
  • burst
  • zoom
  • game
  • retro
  • reveal
  • giveaway
  • gamification

Details

Category
Game & sports graphics
Length
4.0 s (120 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
itemColor rayColors
Mood
pixel
Roles
subject

Use Pixel reward burst in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render pixel-reward-burst --props '{"itemColor":"#35e0ff","rayColors":["#ffe27a","#fff6c8"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export pixel-reward-burst --as mp4 --props '{"itemColor":"#35e0ff","rayColors":["#ffe27a","#fff6c8"]}'

React / Next.js

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

<MotionPlayer
  motion="pixel-reward-burst"
  props={{itemColor: '#35e0ff', rayColors: ['#ffe27a', '#fff6c8']}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="pixel-reward-burst"
  props='{"itemColor":"#35e0ff","rayColors":["#ffe27a","#fff6c8"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "pixel-reward-burst",
      "props": {
        "itemColor": "#35e0ff",
        "rayColors": [
          "#ffe27a",
          "#fff6c8"
        ]
      }
    }
  ]
}

Pixel reward burst props

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

PropDefaultWhat it does
at34frame of the burst (flash)
item"gem"rising reward: gem | star | heart
itemColor"#35e0ff"item colour
rayColors["#ffe27a","#fff6c8"]two ray colours, outer and inner
fountainCount16coins in the fountain
zoomSteps[6,8,10,12]four whole-number zoom levels before the burst
emotestrueshow the ? and ! speech bubbles
seed2seed for the coin fountain

Notes & credits

Technique sources:

  • mg-styles-15 demos/20-pixel/film.js drawRays, fountPos, zoomAt, chest states (MIT)
  • video 20-pixel 5.9-7.2 s