Skip to content

Tilt Card

3D card that tilts toward the pointer with a moving glare and parallax layers (data-depth), easing back when the pointer leaves. Off on touch and reduced motion.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/tilt-card
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Plain

variant="plain" drops the card chrome so any artwork can tilt. Here a print has a caption floating 48px above it.

Speaker pass

A badge-like pass with a stronger tilt and lower perspective, for talks, events or an “about me” teaser.

API Reference