tom

Tilt Card

Cards 107

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="gravitate"
        tiltLimit={18}
        className="w-[360px] rounded-[2rem] border bg-gradient-to-br from-slate-900 via-slate-800 to-slate-950 p-8 text-white shadow-2xl"
      >
        <div className="relative z-20">
          <p className="text-sm text-white/60">Effect</p>
          <h3 className="mt-2 text-4xl font-semibold tracking-tight">Gravitate</h3>
          <div className="mt-20 grid grid-cols-3 gap-3">
            <div className="h-20 rounded-2xl bg-white/10" />
            <div className="h-20 rounded-2xl bg-white/15" />
            <div className="h-20 rounded-2xl bg-white/10" />
          </div>
        </div>
      </TiltCard>
    </div>
  );
}


export default { Demo };

More by tom

View all
  • Shimmer Text

    Shimmer Text

    1.1K
  • Special Text

    Special Text

    1.1K
  • Animated Gradient

    Animated Gradient

    1.1K
  • Marquee

    Marquee

    805
  • Text Marquee

    Text Marquee

    758
  • QR Code

    QR Code

    482
  • Animated Checkbox

    Animated Checkbox

    395
  • Blur Reveal

    Blur Reveal

    377

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