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.
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.
- Use an accessible final value and verify what assistive technology announces. Avoid repeated live announcements for rapidly changing data.
- Add a reduced-motion state that shows the final number without rolling. Do not delay access to important financial or status information.
- Check negative values, large numbers, separators and repeated updates using your real dataset before shipping. Do not invent impressive metrics to fill the demo.
Related guides
- React and Tailwind interaction guide
- Place supporting metrics in a bento layout
- Integrate components into a website workflow
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
- Create
components/ui/number-ticker.tsxin your React + Tailwind project. - Paste the code. It only imports React; keyframes are defined inside the file.
- 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
- Typewriter Text: Types each phrase, pauses, deletes it and types the next, with a blinking caret.
- Word Rotator: Words roll up through a slot that resizes to fit, each one blurring in.
- Aurora Text: A headline filled with a slowly drifting multi-colour gradient.
- Scramble Text: Letters cycle through random characters and lock in one by one, like a decoder.
- Highlight Marker: A hand-drawn marker stroke sweeps behind key words as they scroll into view.
- Blur-In Text: Each letter rises out of a blur in a gentle staggered wave.