Daniel Petho

Number Ticker

Text 53

About

An animated number counter that smoothly tweens from a starting value to a target, with ref-based control to trigger the count on demand.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Number Ticker to your project and fits it to your theme.

Code

How Number Ticker is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import NumberTicker from "@/components/ui/basic-number-ticker";

const NumberTickerDemo = () => {
  return (
    <div className="p-10 flex w-full h-full min-h-[400px] justify-center items-center bg-background">
      <p className="w-full text-7xl md:text-9xl flex justify-center font-mono text-foreground">
        <NumberTicker
          from={0}
          target={100}
          autoStart={true}
          transition={{ duration: 3.5, type: "tween", ease: "easeInOut" }}
          onComplete={() => console.log("complete")}
          onStart={() => console.log("start")}
        />
        %
      </p>
    </div>
  );
};

export default NumberTickerDemo;

Dependencies

More by Daniel Petho

View all
  • Parallax Floating

    Parallax Floating

    2.4K
  • Text Rotate

    Text Rotate

    2.2K
  • Typewriter

    Typewriter

    1.9K
  • Marquee Along SVG Path

    Marquee Along SVG Path

    1.5K
  • Image Trail

    Image Trail

    1.4K
  • Animated Gradient With SVG

    Animated Gradient With SVG

    904
  • Text Cursor Proximity

    Text Cursor Proximity

    808
  • Pixel Trail

    Pixel Trail

    659

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Blur Reveal

    Blur Reveal

    395
  • Reveal Text

    Reveal Text

    165
  • Scroll Fill Headline

    Scroll Fill Headline

    66
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    14
  • Text Reveal

    Text Reveal

    405
  • Motion Blur Text

    Motion Blur Text

    48
  • Liquid Text

    Liquid Text

    277