Skip to content
TrademarkTrademark
Docs
Effects

TiltFx

Updated: October 14, 2025
View on GitHub

TiltFx creates a depth-based tilt animation that follows the user's mouse cursor. The effect is driven by rotateX/rotateY transforms and resets on mouse leave. It's designed for hoverable visual elements like images or feature blocks.

Intensity

Control the strength of the tilt effect with the intensity prop. Lower values create a subtle effect, while higher values make it more dramatic.

Performance

TiltFx automatically detects low-end devices and the prefers-reduced-motion system setting. When either is detected, the tilt effect is disabled. You can override this behavior with the reducedMotion prop.

See useReducedMotion for details.

API reference

Type
Default
children
React.ReactNode—
intensity
How far it tilts.
number1
reducedMotion
"auto" follows the reader's system setting, which is the right default for anything ambient.
booleanauto
auto
…and every FlexProps propinherited—
className
string—
style
React.CSSProperties—
Edit this page on GitHub