Shuffle

Customize Shuffle

Duration0.35s
Shuffle Times1
Stagger0.03s
Threshold0.1

Props

PropertyTypeDefaultDescription
styleobject{}Inline styles applied to the wrapper element.
shuffleDirection"left" | "right""right"Direction the per-letter strip slides to reveal the final character.
maxDelaynumber0Max random delay per strip when animationMode = "random".
thresholdnumber0.1Portion of the element that must enter view before starting.
rootMarginstring"-100px"ScrollTrigger start offset (px, %, etc.).
tag"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span""p"HTML tag to render for the text container.
textAlignstring"center"Text alignment applied via inline style.
onShuffleComplete() => void-Called after a full run completes (and on each loop repeat).
textstring""The text content to shuffle.
classNamestring""Optional CSS class for the wrapper element.
durationnumber0.35Duration (s) of the strip slide per letter.
easestring | Function"power3.out"GSAP ease for sliding and color tween.

Dependencies

gsap@gsap/react

Created with ❤️ by Cybershoora