Skip to content

Step

A navigation target positioned in 3D space. The camera will move to center on each step.

<Step
id="intro" // Optional identifier
duration={60} // Override step duration (optional)
x={0} y={0} z={0} // 3D position
scale={1} // Scale multiplier
rotateX={0} rotateY={0} rotateZ={0} // 3D rotation (degrees)
rotateOrder="xyz" // Transform order
transition={{ // Enter animation when step activates
opacity: [0, 1],
y: [50, 0],
duration: 30,
}}
>
<h1>Welcome</h1>
</Step>

Step 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