2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search 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. Control the strength of the tilt effect with the intensity prop. Lower values create a subtle effect, while higher values make it more dramatic. 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.
Prop
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
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club