Animated Counter

Animated Counter: A number that counts to its new value on a wheel of digits, like an odometer. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Animated Counter

npx motion-ui-skill add animated-counter

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Animated Counter

A number that counts to its new value on a wheel of digits, like an odometer.

Install

npx motion-ui-skill add animated-counter

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { AnimatedCounter as AnimatedCounter } from "@/components/craft/animated-counter";

export function Example() {
  return (
    <div className="p-6">
      <AnimatedCounter />
    </div>
  );
}

Browse this category