Skip to content

Element3D

Arbitrary 3D-positioned content that is NOT a navigation target. Useful for decorative elements.

<Element3D
x={-500} y={-300} z={-800} // 3D position
fixed={false} // If true, stays fixed in screen-space
transition={{ // Content animation
opacity: [0, 1],
scale: [0.5, 1],
duration: 20,
}}
>
<div className="decoration" />
</Element3D>

Element3D supports a transition prop with these properties:

PropertyTypeDescription
x, y, zAnimatedValueTranslation animation
scaleAnimatedValueScale animation
rotateX/Y/ZAnimatedValueRotation animation
opacityAnimatedValueOpacity animation
blurAnimatedValueBlur filter animation
frames[number, number]Start and end frames
durationnumberDuration in frames
delaynumberDelay before animation starts
easingstring | functionEasing function
staggernumberStagger delay between children
staggerDirectionstringStagger order: forward, reverse, center, random