Velocity X Components

Stats & Numbers

Animated Stats Section

Stat band whose numbers count up when the section scrolls into view, then settle. No runtime dependency — plain Astro plus a small inline observer. Honours prefers-reduced-motion by rendering final values immediately.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add animated-stats

Built for astro.

Full docs for Animated Stats Section →

astro v1.0.1

Animated Stats Section

Stat band whose numbers count up when the section scrolls into view, then settle. No runtime dependency — plain Astro plus a small inline observer. Honours prefers-reduced-motion by rendering final values immediately.

Preview isn't available in this repo yet — install with the CLI to view the source

Props

This component's API isn't documented yet.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/animated-stats/AnimatedStats.astro

Using the Animated Stats Section component

Install it with velocityx add animated-stats. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Stats & Numbers.