Opus Motion ★ Star on GitHub

Recipe · landscape · 3 layers

Stats reveal

One big number with context — users, revenue, growth — for an "in numbers" website section or a data beat in a video.

  • stats
  • numbers
  • data
  • kpi
  • metric
  • counter
  • growth
  • section
Stats reveal recipe preview
Stats reveal — frames from the recipe.

Motions in this recipe

Use it in Remotion, React or HTML

CLI

CLI
# render the recipe to out/stats-reveal.mp4 (run in the library folder)
node cli/mgl.mjs recipe stats-reveal --overrides '{"number-counter":{"label":"TEAMS SHIPPING WITH LUMEN"}}'

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

React

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

<MotionMix recipe="stats-reveal"
  overrides={{'number-counter': {label: 'TEAMS SHIPPING WITH LUMEN'}}}
  playOnView
/>

HTML

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

<opus-motion recipe="stats-reveal"
  overrides='{"number-counter":{"label":"TEAMS SHIPPING WITH LUMEN"}}'>
</opus-motion>

recipes/stats-reveal.json

recipes/stats-reveal.json
{
  "id": "stats-reveal",
  "title": "Stats reveal",
  "useFor": "One big number with context — users, revenue, growth — for an \"in numbers\" website section or a data beat in a video.",
  "format": "landscape",
  "duration": 210,
  "background": "#07090f",
  "tags": [
    "stats",
    "numbers",
    "data",
    "kpi",
    "metric",
    "counter",
    "growth",
    "section"
  ],
  "web": {
    "loop": "once"
  },
  "layers": [
    {
      "motion": "number-counter",
      "role": "type",
      "props": {
        "keyframes": [
          [
            0,
            0
          ],
          [
            10,
            0
          ],
          [
            120,
            48000
          ],
          [
            150,
            48210
          ],
          [
            210,
            48210
          ]
        ],
        "mode": "roll",
        "label": "TEAMS SHIPPING WITH LUMEN",
        "unit": "",
        "separator": ",",
        "readouts": [],
        "backdrop": "ink",
        "numberColor": "#F2F4FA",
        "labelColor": "#8FA6E8",
        "size": 260,
        "labelSize": 30
      }
    },
    {
      "motion": "flow-lines",
      "role": "accent",
      "props": {
        "mode": "wind",
        "background": "transparent",
        "backdrop": false,
        "color": "#3E5BA8",
        "count": 5,
        "speed": 0.5,
        "weight": 0.8,
        "curlProbability": 0.3
      },
      "opacity": 0.45,
      "blend": "screen"
    },
    {
      "motion": "star-glint",
      "role": "accent",
      "from": 120,
      "props": {
        "background": "transparent",
        "showSubject": false,
        "x": 0.69,
        "y": 0.4,
        "delay": 4,
        "size": 0.9,
        "hold": 30
      },
      "blend": "screen"
    }
  ],
  "notes": "Set number-counter.keyframes ([[frame, value], …]; two close keys = dwell), label, prefix (\"$\") and unit (\"%\"). Web: plays once on view and holds the final number."
}