Berat Berkay Gökdemir

Animated Card

Cards 2

About

animated card 3D card

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

Code

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

Usage.tsx

"use client";

import { useState } from "react";
import { GlowCard } from "@/components/ui/animated-card";

export default function DemoOne() {
  const [selectedColor, setSelectedColor] = useState<"violet" | "pink" | "emerald" | "blue" | "fuchsia">("violet");

  const colors = [
    { value: "violet", hex: "#7C3AED" },
    { value: "pink", hex: "#EC4899" },
    { value: "emerald", hex: "#10B981" },
    { value: "blue", hex: "#3B82F6" },
    { value: "fuchsia", hex: "#D946EF" },
  ];

  return (
    <div className= "flex flex-col items-center gap-13" >
    {/* Color Selector */ }
    < div className = "flex gap-3 flex-wrap justify-center z-10" >
    {
      colors.map((color) => (
        <button
            key= { color.value }
            onClick = {() => setSelectedColor(color.value as any)}
  className = {`w-8 h-8 rounded-full border-2 transition-transform duration-200 cursor-pointer
              ${selectedColor === color.value ? "border-white scale-110" : "border-transparent"}`
}
style = {{ backgroundColor: color.hex }}
/>
        ))}
</div>
  < GlowCard color ={selectedColor} >
    <h3 className="text-lg font-semibold" > Pro Plan < /h3>
      < p className = "text-sm text-gray-400" >
        Everything you need to scale your workflow.
  < /p>
          < /GlowCard>
          < /div>
  );
}

Dependencies

More by Berat Berkay Gökdemir

View all
  • AI Loader

    AI Loader

    1.3K
  • Hero

    Hero

    1.2K
  • Profile Card

    Profile Card

    743
  • Roadmap Card

    Roadmap Card

    568
  • Hero

    Hero

    466
  • Glassmorphism Profile Card

    Glassmorphism Profile Card

    435
  • Highlight Card

    Highlight Card

    425
  • Product Card

    Product Card

    375

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3