tom

Tilt Card

Cards 126

About

Interactive 3D tilt card with perspective hover effect and spotlight.

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

Code

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

Usage.tsx

"use client";

import { TiltCard } from "@/components/ui/tilt-card";

function Demo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
      <TiltCard
        effect="evade"
        scale={1.08}
        tiltLimit={20}
        className="w-[360px] rounded-[2rem] border bg-card p-8 shadow-2xl"
      >
        <div className="relative z-20">
          <p className="text-sm text-muted-foreground">Effect</p>
          <h3 className="mt-2 text-4xl font-semibold tracking-tight">Evade</h3>
          <p className="mt-4 text-sm leading-6 text-muted-foreground">
            The card tilts away from the pointer while keeping a soft spotlight under
            the cursor.
          </p>
          <div className="mt-10 h-24 rounded-3xl bg-muted" />
        </div>
      </TiltCard>
    </div>
  );
}


export default { Demo };

More by tom

View all
  • Special Text

    Special Text

    1.1K
  • Shimmer Text

    Shimmer Text

    1.1K
  • Animated Gradient

    Animated Gradient

    986
  • Marquee

    Marquee

    781
  • Text Marquee

    Text Marquee

    750
  • QR Code

    QR Code

    459
  • Animated Checkbox

    Animated Checkbox

    386
  • Perspective Book

    Perspective Book

    328

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    301
  • Statistics Card 2

    Statistics Card 2

    272
  • Stats cards with links

    Stats cards with links

    82
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    183
  • Card Studio

    Card Studio

    35
  • Card

    Card

    70
  • Card

    Card

    18