Count upCount up
Open in MOGA

Component

Count up

@moga/data-motion · MOGA official

Part of the bundle Data motion

One big number that lands on its value: each digit spins like a slot reel and settles left to right (or counts on a long decelerating curve), with a prefix, a suffix and a label; plain on the frame or on a tile with a filling bar. Give it its own box (about 1200 × 600 plain, 640 × 560 as a tile).

npx motioncn-cli add moga/data-motion/count-up

Version 1.0.0MIT35 downloads0 favorites

Updated December 3, 2026

Use it in MOGA

Import just this one, without the rest of the bundle. Bundle tokens it uses come with it. Run in your project folder:

npx -y moga hub-import @moga/data-motion --items component:count-up

Use it outside MOGA (Motioncn)

Free, no account. It is plain web code that plays in a web page, React, Remotion and HyperFrames, drawing the same frames MOGA renders.

Add it to your project with shadcn

npx shadcn@latest add https://motioncn.dev/r/moga/data-motion/count-up.json

No shadcn setup? This works too

npx motioncn-cli add moga/data-motion/count-up

Import it in a page, no build

import CountUp from 'https://motioncn.dev/m/moga/data-motion/count-up.js';
import preset from 'https://motioncn.dev/m/theme.js';
CountUp.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React, Remotion and HyperFrames

// React (https://motioncn.dev/r/player-react.json)
<Motion motion={CountUp} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={CountUp} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(CountUp.mount(element, { preset, duration: 5 }), { start: 0 });