unlumen

Count Up

Text 183

About

An animated number counter that springs to its target value when it enters the viewport, with support for decimals, thousands separators, count direction, and per-digit slide, fade, and blur effects.

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

Code

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

Usage.tsx

"use client";

import { CountUp } from "@/components/ui/count-up";

export default function CountUpDemo() {
  return (
    <div className="flex min-h-64 flex-wrap items-end justify-center gap-12 bg-background p-8 text-foreground">
      <div className="flex flex-col items-center gap-1">
        <CountUp
          to={1000000}
          separator=","
          digitEffect="slide"
          className="text-5xl font-bold tabular-nums tracking-tight"
        />
        <span className="text-xs text-muted-foreground">users</span>
      </div>

      <div className="flex flex-col items-center gap-1">
        <CountUp
          to={99.9}
          digitEffect="blur"
          className="text-5xl font-bold tabular-nums tracking-tight"
        />
        <span className="text-xs text-muted-foreground">uptime %</span>
      </div>

      <div className="flex flex-col items-center gap-1">
        <CountUp
          to={0}
          from={5}
          direction="down"
          separator=","
          digitEffect="slide"
          className="text-5xl font-bold tabular-nums tracking-tight"
        />
        <span className="text-xs text-muted-foreground">issues</span>
      </div>
    </div>
  );
}

Dependencies

More by unlumen

View all
  • Motion Navigation Menu

    Motion Navigation Menu

    316
  • Side By Side Slide

    Side By Side Slide

    300
  • Scroll Reveal Image

    Scroll Reveal Image

    251
  • Pixel Liquid Background

    Pixel Liquid Background

    137
  • Animated Sidebar

    Animated Sidebar

    122
  • Glow Button

    Glow Button

    116
  • Horizontal Depth Fade

    Horizontal Depth Fade

    95
  • LED Dot Matrix Display

    LED Dot Matrix Display

    79

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    15
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Blur Reveal

    Blur Reveal

    401
  • Apple Hello Effect

    Apple Hello Effect

    692
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    31
  • NeonRGBTextEffect

    NeonRGBTextEffect

    156