Rotating Text

Shoora UI

Customize Rotating Text

Stagger Duration0.025s
Rotation Interval2000ms
Damping30
Stiffness400

Props

PropertyTypeDefaultDescription
textsstring[][]An array of text strings to be rotated.
rotationIntervalnumber2000The interval (in milliseconds) between text rotations.
initialobject{ y: "100%", opacity: 0 }Initial animation state for each element.
animateobject{ y: 0, opacity: 1 }Animation state when elements enter.
exitobject{ y: "-120%", opacity: 0 }Exit animation state for elements.
animatePresenceModestring"wait"Mode for AnimatePresence; for example, 'wait' to finish exit animations before entering.
animatePresenceInitialbooleanfalseDetermines whether the AnimatePresence component should run its initial animation.
staggerDurationnumber0Delay between each character's animation.
staggerFromstring"first"Specifies the order from which the stagger starts.
transitionobject-Transition settings for the animations.
loopbooleantrueDetermines if the rotation should loop back to the first text after the last one.
autobooleantrueIf true, the text rotation starts automatically.
splitBystring"characters"Determines how the text is split into animatable elements (e.g., by characters, words, or lines).
onNextfunction-Callback function invoked when the text rotates to the next item.
mainClassNamestring""Additional class names for the main container element.

Created with ❤️ by Cybershoora