Text Path

Animated text that follows an SVG path with GSAP

lorem ipsum dolor sit amet consectetur adipiscing elit sed dolorem ipsum dolor sit amet consectetur adipiscing elit sed do

Customize

Font Size
50
Letter Spacing
0.0
Path Scale
1.0
Duration
21

Props

9
textstring

The text content to animate along the path.

Default"Your text goes here"
pathstring

SVG path data string (the 'd' attribute value). The text will animate along this path.

Default""
classNamestring

Additional CSS classes for the container.

Default""
durationnumber

Animation duration in seconds for one complete loop around the path.

Default21
reversedboolean

Reverse the animation direction. When true, text moves counterclockwise.

Defaultfalse
fontSizestring

Font size for the text. Accepts any valid CSS font-size value.

Default"17px"
letterSpacingstring

Letter spacing for the text. Accepts any valid CSS letter-spacing value.

Default"normal"
viewBoxstring

SVG viewBox attribute. Adjust to match your path dimensions for proper rendering.

Default"0 0 240 240"
pathScalenumber

Scale factor for the entire path. Values > 1 make it larger, < 1 make it smaller.

Default1