Marvin Kaunda

Card Resize Toggle

Cards 5

About

A card that smoothly animates its width and height between a large and a small size when toggled, using an eased CSS transition.

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

Code

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

Usage.tsx

import { CardResize } from "@/components/ui/card-resize";

export default function CardResizeDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <CardResize />
    </div>
  );
}

More by Marvin Kaunda

View all
  • Modal Transition

    Modal Transition

    1
  • Panel Reveal

    Panel Reveal

  • Number Pop In

    Number Pop In

  • Stat Card

    Stat Card

  • Rating

    Rating

  • Steps

    Steps

  • Page Slide Transition

    Page Slide Transition

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Stats cards with links

    Stats cards with links

    46
  • Model Grid Cards

    Model Grid Cards

    6
  • Admin Dashboard Cards

    Admin Dashboard Cards

    46
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    781
  • Card

    Card

    2