JurreHoutkamp

Tilt Card

Cards 154

About

Here is Tilt Card component

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

// File: App.jsx (or your main entry file)

import * as React from "react";
// We ONLY import the pure component. No Framer dependencies here.
import { InteractiveTiltCard } from "@/components/ui/tilt-card"; 

// This is our Demo Container. It's like a Storybook story.
// Its job is to create a fake environment to display the component.
export default function TiltCardDemo() {
    return (
        // 1. A container to center the card and provide a background
        <div
            style={{
                display: "grid",
                placeItems: "center",
                width: "100vw",
                height: "100vh",
                background: "linear-gradient(to bottom right, #2d3748, #1a202c)",
            }}
        >
            {/* 2. A sized box to constrain our component */}
            <div style={{ width: "300px", height: "400px" }}>
                {/* 3. The Pure UI component with hardcoded props for the demo */}
                <InteractiveTiltCard
                    image={{
                        src: "https://cdn.21st.dev/assets/mirror/68/681df203fb12e8135f12ce0b5847f4cb8c6318eb4c6fee25f9e1c4a68f83553d.jpg",
                        alt: "Blue flower in a vase",
                    }}
                    tiltFactor={20}
                    hoverScale={1.07}
                    shadowIntensity={0.6}
                    glareEffect={true}
                    glareIntensity={0.4}
                />
            </div>
        </div>
    );
}

Dependencies

More by JurreHoutkamp

View all
  • Text Glow Hover

    Text Glow Hover

    110
  • Hover Zoom

    Hover Zoom

    18

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10