This page as markdown: /tilt.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Tilt

Status: stable

Optional bounded mouse depth on a surface. Coalesces samples into one requestAnimationFrame and writes transform locally. Static on touch, subtle motion and reduced motion.

Keywords: tilt, pointer depth, 3d card, perspective, mouse movement

Usage

Use for one illustrative card or image whose content already works without the effect. The wrapper owns transform; put an independently transformed element inside it rather than overriding the wrapper's transform while tracking.

Best practices

Props

Name Type Default Description
maxAngle number 6 Maximum rotation per axis in degrees, bounded to 0–15. 0 turns the lean off; a surface that was leaning eases back to flat.
motion "full" | "subtle" | "off" — Only turns motion down. Pointer depth is expressive.

Motion

Accessibility

Related

Examples

Illustrative surface

import { Card, CardContent, Tilt } from "@sableui/react"

<Tilt><Card><CardContent>Studio membership</CardContent></Card></Tilt>

Static equivalent

import { Card, CardContent, Tilt } from "@sableui/react"

<Tilt motion="off" maxAngle={3}><Card><CardContent>All content remains available</CardContent></Card></Tilt>