amankaushik481

Card Tilt

Cards

About

A card that tilts in 3D toward the mouse pointer with a spring-driven, cursor-following glare, and stays flat for touch input or when reduced motion is preferred.

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

Code

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

Usage.tsx

"use client";

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

export default function CardTiltDemo() {
  return (
    <div className="flex items-center justify-center w-full h-screen bg-bg p-8">
      <CardTilt className="w-full max-w-xs" />
    </div>
  );
}

Dependencies

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1

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