BadtzUIBeta
Docs
Animated Card 2

Animated Card 2

An animated hover card that can showcase almost anything—it all comes down to the caption you choose.

12.5%

Random Data Visualization

Displaying some interesting stats.

ReactJS
MongoDB
Prisma
NextJs
Auth.js
Stripe

Just find the right caption

This card will tell everything you want

Installation

pnpm dlx shadcn@latest add to-setup

Usage

import {
  AnimatedCard,
  CardVisual,
  CardBody,
  CardTitle,
  CardDescription,
} from "@/components/ui/animated-card";
import { Visual2 } from "@/components/ui/visual-2";
<AnimatedCard>
  <CardVisual>
    <Visual2 mainColor="#ff6900" secondaryColor="#f54900" />
  </CardVisual>
  <CardBody>
    <CardTitle>Just find the right caption</CardTitle>
    <CardDescription>This card will tell everything you want</CardDescription>
  </CardBody>
</AnimatedCard>

Props

animated-card props.

PropTypeDescriptionDefault
classNameStringAdditional custom classes.-
propsReact.HTMLAttributes<HTMLDivElement>Additional HTML attributes.-

visual-2 props.

PropTypeDescriptionDefault
mainColorStringMain color used for certain elements in the component."#8b5cf6"
secondaryColorStringSecondary color used for other elements in the component."#fbbf24"
gridColorStringGrid background color for the component."#80808015"

Note

  • Many more cards are coming in the future. If you need a card for a specific theme, feel free to send me a request. If it's something that could benefit many people, I'll build it.

Credits

  • This component is inspired by Wope

  • Animated Card 1Animated Card 3