Text Type

|

Customize Text Type

Typing Speed75ms
Pause Duration1500ms

Props

PropertyTypeDefaultDescription
textstring | string[]""Text content to be typed. Can be a string or array of strings for multiple lines
typingSpeednumber75Speed of typing in milliseconds
pauseDurationnumber1500Duration to pause between lines in milliseconds
showCursorbooleantrueWhether to show the blinking cursor
cursorCharacterstring"|"Character to use as the cursor
classNamestring""Additional CSS classes to apply to the container
onComplete() => void-Callback function called when typing animation completes
onLineComplete(lineIndex: number) => void-Callback function called when a line completes typing

Dependencies

gsap

Created with ❤️ by Cybershoora