Mark Yo

Tilt Card

Cards

About

A card wrapper that tilts in 3D toward the cursor with a soft pointer-tracking glare highlight, staying flat on touch devices and under reduced motion.

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 TiltCardPreview() {
  return (
    <div className="flex items-center justify-center p-6">
      <TiltCard className="w-[280px] border border-border bg-card p-8">
        <div className="text-xs uppercase tracking-wider text-muted-foreground">
          Premium
        </div>
        <h3 className="mt-2 text-2xl font-semibold text-foreground">Tilt me</h3>
        <p className="mt-3 text-sm text-muted-foreground">
          Move your cursor across the card to see 3D tilt + glare.
        </p>
      </TiltCard>
    </div>
  );
}

export default TiltCardPreview;

Dependencies

More by Mark Yo

View all
  • Loader

    Loader

    64
  • Pricing Table

    Pricing Table

    23
  • Bento Grid

    Bento Grid

    4
  • Expandable Tabs

    Expandable Tabs

    1
  • Shared Layout Background

    Shared Layout Background

    1
  • Stateful Button

    Stateful Button

  • Animated Button

    Animated Button

  • Morphing Modal

    Morphing Modal

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    334
  • Photo Deck

    Photo Deck

    39
  • Approval Card

    Approval Card

    33
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    700
  • Statistics Card 10

    Statistics Card 10

    300
  • Product List 01

    Product List 01

    32
  • Weather Card

    Weather Card

    66