OPUS/UI

Navigation

Tilt Card

3D tilt with a specular glare and real depth — wrap children in <TiltLayer depth> to float them toward you.

pointer3dcss-vars4 files · 224 locdeps: clsx, tailwind-merge
Collector

NEBULA 01

Edition of 250 · tilt me

Monthly revenue

$48,290

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/tilt-card.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs tilt-card

Usage

import { TiltCard, TiltLayer } from "@/components/opus/effects/tilt-card";

<TiltCard className="p-6">
  <TiltLayer depth={40}>Floating title</TiltLayer>
</TiltCard>

API

PropTypeDefaultDescription
maxnumber12Max tilt (deg).
scalenumber1.03Hover lift.
glarebooleantruePointer-following specular highlight.
perspectivenumber900Perspective (px) — lower is more dramatic.
TiltLayer.depthnumber30translateZ for a child layer (px).

Notes

  • Pointer position is written to CSS variables from one rAF loop — React never re-renders while you move, and the loop sleeps when idle.

Command palette