LaviKatiyar

Card

Cards 119

About

Animated Stats Card This component provides a visually appealing card to display a key statistic, such as "Fitness Age," against a benchmark. It features a smooth, count-up animation that triggers when the component enters the viewport, and it's fully theme-adaptive using shadcn variables.

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

Code

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

Usage.tsx

import { AnimatedStatsCard } from "@/components/ui/card-4"; // Adjust the import path
import { Timer } from "lucide-react";

/**
 * A demo component to showcase the AnimatedStatsCard.
 */
export default function AnimatedStatsCardDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-4">
      <AnimatedStatsCard
        title="Fitness Age"
        primaryValue={30.5}
        secondaryValue={37}
        secondaryLabel="Your Age"
        icon={<Timer className="h-5 w-5 text-primary-foreground/90" />}
      />
    </div>
  );
}

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    801
  • Cards

    Cards

    564
  • Service Card

    Service Card

    546
  • Card

    Card

    505
  • Alert Toast

    Alert Toast

    481
  • Bento Grid

    Bento Grid

    381
  • Freelancer Profile Card

    Freelancer Profile Card

    358
  • Referral Card

    Referral Card

    289

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10