Skip to content
Premium & Brand

Tilt Card

A card that tilts in 3D toward the pointer, with an optional glare.

Import

tsx
import { TiltCard } from "@cronus-ui/ui";
bash
npx cronus-ui add tilt-card

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component TiltCardDefault layout:inline style:tilt-card {
  label "Hover me"
}

page "/audit/tilt-card/default" type:custom {
  use TiltCardDefault
}

API Reference

Generated from the component's exported types.

TiltCardProps

Extends HTMLAttributes<HTMLDivElement>

Skip TiltCardProps props table
PropTypeDefaultDescription
maxTilt
number12Maximum rotation, in degrees, reached on each axis at the card's edges. Higher feels more dramatic.
glare
booleanfalseRender a soft pointer-following glare sheen across the surface.
scale
number1.03Uniform zoom applied while the pointer is over the card (`1` = none).
parallax
booleanfalseLift the content toward the viewer on hover for a layered parallax depth effect.
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.