FINDING YOUR DIRECTION

0%

UI components / Text

Number Ticker: a React and Tailwind UI component

Each digit rolls on its own reel to the new value when it scrolls into view.

Number Ticker component preview

Open the live Number Ticker preview.

An animated number counter for real metrics

The number ticker rolls individual digits when a value appears and when that value changes. Use it for a small set of real, clearly labelled metrics. The demo values and “Sites launched” label are fictional interface content, not Scrollhaus business statistics.

Integration and launch checks

The exported NumberTicker takes a numeric value and an optional className. Connect it to an actual value in your app and keep a readable label nearby. This is a React component using effects and IntersectionObserver, not a framework-free JavaScript counter or a GIF.

Related guides

About text components

Animated text should support the headline, not compete with it. Keep the real words in the DOM so search engines and screen readers read them, run the effect once or on hover, and respect reduced-motion settings for longer sequences.

Install the Number Ticker

  1. Create components/ui/number-ticker.tsx in your React + Tailwind project.
  2. Paste the code. It only imports React; keyframes are defined inside the file.
  3. Import the named component where you need it. The default export is a ready-made demo you can delete.

Frequently asked questions

Is the Number Ticker component free?

Anyone can open the live preview. Copying the code is included with a Scrollhaus plan.

What do I need to use it?

A React project with Tailwind CSS: Next.js, Vite, Lovable or Bolt. The file only imports React; its animations ship inside the component.

Is it accessible?

Treat this as an implementation starting point. Follow the integration and launch checks below, including keyboard focus, mobile layout and reduced-motion behaviour, and test the component in your app.

More text

Browse all 49 UI components · Compare with 21st.dev