Opus Motion ★ Star on GitHub

Game & sports · achievement-unlock

Achievement unlock toast

A round badge pops with a drawn rim and spark burst, the toast unrolls from it with ACHIEVEMENT UNLOCKED, the title, a description and a points chip, a shine sweeps across, then it rolls back up; several achievements play in turn.

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

Achievement unlock toast: three frames of the game graphic, start, middle and end
Achievement unlock toast — start, middle and end of the 8.0-second motion.

What Achievement unlock toast is for

Game and gamified-app reward pop-ups, trophy / badge unlocks in tutorials and courses, milestone "you earned" toasts, stream alerts. Replace the items (title, description, points, icon or your own iconSrc) and colours; use background "transparent" over gameplay.

  • achievement
  • unlock
  • trophy
  • badge
  • toast
  • reward
  • game
  • gaming
  • notification
  • gamification
  • overlay
  • esports
  • stream
  • alert
  • milestone

Details

Category
Game & sports graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
items
Colour props
background surface ink accent
Mood
—
Roles
accent

Use Achievement unlock toast in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render achievement-unlock --props '{"items":[{"title":"First Victory","description":"Win your first ranked match","points":50,"icon":"trophy"},{"title":"Sharpshooter","description":"Land 100 precision hits in a single season","points":100,"icon":"star"}],"background":"#0A0D1A","surface":"#161C34","ink":"#F4F6FF","accent":"#FFC933"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export achievement-unlock --as webm-alpha --props '{"items":[{"title":"First Victory","description":"Win your first ranked match","points":50,"icon":"trophy"},{"title":"Sharpshooter","description":"Land 100 precision hits in a single season","points":100,"icon":"star"}],"background":"#0A0D1A","surface":"#161C34","ink":"#F4F6FF","accent":"#FFC933"}'

React / Next.js

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

<MotionPlayer
  motion="achievement-unlock"
  props={{
    items: [
      {
        title: 'First Victory',
        description: 'Win your first ranked match',
        points: 50,
        icon: 'trophy',
      },
      {
        title: 'Sharpshooter',
        description: 'Land 100 precision hits in a single season',
        points: 100,
        icon: 'star',
      },
    ],
    background: '#0A0D1A',
    surface: '#161C34',
    ink: '#F4F6FF',
    accent: '#FFC933',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="achievement-unlock"
  props='{"items":[{"title":"First Victory","description":"Win your first ranked match","points":50,"icon":"trophy"},{"title":"Sharpshooter","description":"Land 100 precision hits in a single season","points":100,"icon":"star"}],"background":"#0A0D1A","surface":"#161C34","ink":"#F4F6FF","accent":"#FFC933"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "achievement-unlock",
      "props": {
        "items": [
          {
            "title": "First Victory",
            "description": "Win your first ranked match",
            "points": 50,
            "icon": "trophy"
          },
          {
            "title": "Sharpshooter",
            "description": "Land 100 precision hits in a single season",
            "points": 100,
            "icon": "star"
          }
        ],
        "background": "#0A0D1A",
        "surface": "#161C34",
        "ink": "#F4F6FF",
        "accent": "#FFC933"
      }
    }
  ]
}

Achievement unlock toast props

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

PropDefaultWhat it does
items[{"title":"First Victory","description":"Win your first ranked match","points":50,"icon…up to 5 of {title, description?, points?, icon? (trophy|star|crown|bolt|shield|flame|heart), iconSrc? (own image), color?}
header"Achievement unlocked"small label above the title
pointsLabel"PTS"unit under the points number
position"bottom-center"bottom-center | bottom-left | top-center | top-right
background"#0A0D1A"frame colour, or "transparent" to overlay gameplay
surface"#161C34"toast card colour
ink"#F4F6FF"text colour
accent"#FFC933"default badge / highlight colour (an item can override with color)
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Technique sources:

  • original