Skip to content

Tilt

Free

Any item turns in 3D toward the mouse, up to 6 degrees, and grows 2%. Tilt Glare adds a soft light at the pointer.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Wrap one card. Put TiltGlare last inside the card.

plan-card.tsx

Tilt

<div>
PropTypeDefaultDescription
maxAnglenumber6The largest turn in degrees, reached at an edge. More than about 10 reads as a toy.
scalenumber1.02The size while the mouse is on: 1.02 is 2% larger. 1 turns the growth off.
perspectivenumber900The 3D depth in px. Smaller is stronger; set it near the item width for a large item.
disabledbooleanfalseKeeps the item flat and stops the pointer work.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TiltGlare

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Wrap one card. Put TiltGlare as the last child of the card, and give the card relative.
  • Keep maxAngle near 6. More than about 10 reads as a toy.
  • For a large item, set perspective near its width.
  • Use useTiltMotion for a light layer of your own, such as a foil.
  • For an item that moves toward the mouse with no turn, use Magnetic.
  • For a plain surface with no effect, use a Card.

Decoration only: it adds no role, no name, and no focus stop. The child keeps its own focus and clicks.

The glare is aria-hidden and ignores the pointer, so links and buttons under it stay clickable.

Turn
hover · 150ms · ease-out (0, 0, 0.2, 1), to each new pointer place
Grow and glare
hover · 150ms · ease-out (0, 0, 0.2, 1), in when the mouse enters, out when it leaves
  1. AddedTilt.
Open the release