Opus Motion ★ Star on GitHub

Recipe · landscape · 3 layers

Event countdown

Countdown to a launch, live stream or event: a night city with a big counter ticking down and fireworks at zero.

  • countdown
  • event
  • timer
  • launch
  • night
  • city
  • fireworks
  • live
Event countdown recipe preview
Event countdown — frames from the recipe.

Motions in this recipe

Use it in Remotion, React or HTML

CLI

CLI
# render the recipe to out/event-countdown.mp4 (run in the library folder)
node cli/mgl.mjs recipe event-countdown --overrides '{"number-counter":{"label":"GOING LIVE IN"}}'

# copy just this recipe's source into a Remotion / React project
node cli/mgl.mjs add event-countdown --to ../my-app/src

React

React
import {MotionMix} from 'opus-motion-library/web';

<MotionMix recipe="event-countdown"
  overrides={{'number-counter': {label: 'GOING LIVE IN'}}}
  playOnView
/>

HTML

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

<opus-motion recipe="event-countdown"
  overrides='{"number-counter":{"label":"GOING LIVE IN"}}'>
</opus-motion>

recipes/event-countdown.json

recipes/event-countdown.json
{
  "id": "event-countdown",
  "title": "Event countdown",
  "useFor": "Countdown to a launch, live stream or event: a night city with a big counter ticking down and fireworks at zero.",
  "format": "landscape",
  "duration": 330,
  "background": "#060a14",
  "tags": [
    "countdown",
    "event",
    "timer",
    "launch",
    "night",
    "city",
    "fireworks",
    "live"
  ],
  "web": {
    "loop": "once"
  },
  "layers": [
    {
      "motion": "city-skyline",
      "role": "backdrop",
      "props": {
        "pullback": false
      },
      "opacity": 0.45
    },
    {
      "motion": "number-counter",
      "role": "type",
      "props": {
        "keyframes": [
          [
            0,
            10
          ],
          [
            30,
            10
          ],
          [
            270,
            0
          ],
          [
            330,
            0
          ]
        ],
        "mode": "tick",
        "label": "GOING LIVE IN",
        "unit": "",
        "readouts": [],
        "backdrop": "none",
        "layout": "center",
        "size": 280,
        "numberColor": "#FFF4DA",
        "labelColor": "#F2C46B"
      },
      "y": -0.08
    },
    {
      "motion": "fireworks",
      "role": "accent",
      "from": 264,
      "props": {
        "scene": false,
        "count": 3,
        "every": 12,
        "firstAt": 2
      },
      "blend": "screen"
    }
  ],
  "notes": "number-counter.keyframes counts 10 → 0 over 8 s; change the values / frames for your countdown and label. For a real-time web countdown render the number in HTML and use only city-skyline + fireworks."
}