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

Text

50
0

Path

1

Animation

21

Props

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.

Default:21
reversedboolean

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

Default:false
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.

Default:1