Split Text

Hello Shoora UI

Customize Animation

Duration: 0.8s0.8s
Delay: 0.05s0.05s

Props

PropertyTypeDefaultDescription
tagstring"p"HTML tag to render
textstring""The text content to animate
classNamestring""Additional class names
delaynumber100Delay between animations for each letter (in ms)
durationnumber0.6Duration of each letter animation (in seconds)
easestring"power3.out"GSAP easing function
splitTypestring"chars"Split type ("chars", "words", "lines", or "words, chars")
fromobject{ opacity: 0, y: 40 }Initial GSAP properties
toobject{ opacity: 1, y: 0 }Target GSAP properties
thresholdnumber0.1Intersection threshold for ScrollTrigger
rootMarginstring"-100px"Root margin for ScrollTrigger
textAlignstring"center"Text alignment
onLetterAnimationCompletefunction-Callback when all animations complete

Dependencies

gsap@gsap/react

Created with ❤️ by Cybershoora