Text Path

Animated text that follows an SVG path with GSAP

text-path-tw
lorem ipsum dolor sit amet consectetur adipiscing elit sed dolorem ipsum dolor sit amet consectetur adipiscing elit sed do

Customize

21
50
0
1

Props

NameTypeDefaultDescription
textstring"Your text goes here"The text content to animate along the path.
pathstring""SVG path data string (the 'd' attribute value). The text will animate along this path.
classNamestring""Additional CSS classes for the container.
durationnumber21Animation duration in seconds for one complete loop around the path.
reversedbooleanfalseReverse the animation direction. When true, text moves counterclockwise.
fontSizestring"17px"Font size for the text. Accepts any valid CSS font-size value.
letterSpacingstring"normal"Letter spacing for the text. Accepts any valid CSS letter-spacing value.
viewBoxstring"0 0 240 240"SVG viewBox attribute. Adjust to match your path dimensions for proper rendering.
pathScalenumber1Scale factor for the entire path. Values > 1 make it larger, < 1 make it smaller.