LaviKatiyar

Card

Cards 135

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

    847
  • Cards

    Cards

    689
  • Service Card

    Service Card

    637
  • Card

    Card

    559
  • Alert Toast

    Alert Toast

    503
  • Bento Grid

    Bento Grid

    431
  • Freelancer Profile Card

    Freelancer Profile Card

    378
  • Referral Card

    Referral Card

    310

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198