Tilt Card

3D perspective tilt card that responds to mouse position.

cards3dtiltperspective

Installation

Terminalbash
npx motioncraft add tilt-card

Usage

tilt-card.tsxtsx
import { TiltCard } from "@/components/cards/tilt-card";

<TiltCard>
  <p>Move your mouse over me</p>
</TiltCard>

Props

PropTypeDefaultDescription
children*ReactNodeCard content
classNamestringAdditional CSS classes

Related Components