Toggle Sidebar B
AppearanceLight & dark mode D

Text Loop

A seamless text marquee that flows along curved SVG paths.

Default

Every prop is wired to the controls underneath. Hover the ribbon to pause it.

Light previewReplay previewOpen in new tab

Customize

Shape
Direction
Text Color
Ribbon Color
Speed90
Curviness90
Ribbon Width86px
Font Size46px
Font Weight800
Letter Spacing2px

API Reference

TextLoop

PropTypeDefaultDescription
textstring"React ✦ Bits"The phrase repeated along the curve.
shape"wave" | "circle" | "infinity" | "arch" | "line""wave"Built-in curve the text flows along.
pathstringundefinedCustom SVG path data, drawn in a 1200x400 viewBox. Overrides shape when provided.
speednumber90Travel speed along the path, in units per second.
direction"forward" | "reverse""forward"Direction the text scrolls around the curve.
separatorstring"✦"Glyph placed between each repetition.
curvinessnumber90Amplitude of the wave, or the radius of the closed shapes.
fontSizenumber46Font size of the looping text.
fontWeightnumber800Font weight of the looping text.
letterSpacingnumber2Extra tracking between letters.
uppercasebooleantrueRenders the phrase in uppercase.
colorstring"#ffffff"Fill color of the text.
ribbonbooleantrueDraws a solid band behind the text along the path.
ribbonColorstring"#5227FF"Color of the band behind the text.
ribbonWidthnumber86Thickness of the band behind the text.
pauseOnHoverbooleantruePauses the loop while the pointer is over it.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The SVG has role img and an aria-label with the phrase. The repeated copies are aria-hidden, so it is announced once.
  • With prefers-reduced-motion the text stays still.