Text Pressure

Hello!

Customize Text Pressure

#ffffff
#ff0000

Props

PropertyTypeDefaultDescription
textstring""The text to be displayed and animated
flexbooleantrueEnable flex layout for the text container
alphabooleanfalseEnable alpha channel animation
strokebooleanfalseEnable stroke effect
widthbooleantrueEnable width animation
weightbooleantrueEnable font weight animation
italicbooleantrueEnable italic style animation
textColorstring"#000000"Base color of the text
strokeColorstring"#ff0000"Color of the text stroke
minFontSizenumber12Minimum font size in pixels
classNamestring-Additional CSS class name for the container
styleReact.CSSProperties{}Inline styles for the container
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

Created with ❤️ by Cybershoora