Text on Path
Testo su tracciato · Texto en trazado · Text along path · Testo in movimento su curva · Circular text · Testo circolare
A phrase flows along a curve, a wave or a circle instead of a straight line, like an endless moving ribbon. It shows up in spinning badges, decorative headlines and scroll-linked sections.
- Era
- 2001 – today
- Use
- Mainstream
Live demo
View code
<svg viewBox="0 0 600 300" preserveAspectRatio="xMidYMid slice" aria-label="Testo che scorre lungo una curva">
<path id="w" d="M-40 210 C 90 40, 230 40, 300 150 S 500 270, 640 90" fill="none" stroke="#E2532D" stroke-width="44" stroke-linecap="round" opacity=".14"/>
<text><textPath id="tp" href="#w" startOffset="0">segui la curva ✺ parole in viaggio ✺ segui la curva ✺ parole in viaggio ✺ segui la curva ✺ parole in viaggio ✺ </textPath></text>
<g transform="translate(490 70)">
<g class="spin">
<circle r="46" fill="#2F6B4F"/>
<path id="c" d="M0,-34 a34,34 0 1,1 -0.1,0" fill="none"/>
<text class="sm"><textPath href="#c" textLength="208" lengthAdjust="spacing">NUOVA COLLEZIONE ✺ AUTUNNO ✺ </textPath></text>
</g>
<circle r="8" fill="#E9B949"/>
</g>
</svg>
<script>
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
const tp=document.getElementById('tp'),L=tp.getComputedTextLength()/3;let o=0;
(function f(){o-=.7;if(o<=-L)o+=L;tp.setAttribute('startOffset',o);requestAnimationFrame(f)})();
}
</script> body{margin:0;height:100vh;background:#F1ECE2;overflow:hidden}
svg{width:100%;height:100%;display:block}
text{font:italic 600 34px Fraunces,serif;fill:#1E1A17;letter-spacing:.5px}
text.sm{font:600 9.5px 'Work Sans',sans-serif;fill:#F1ECE2;letter-spacing:0}
.spin{transform-box:fill-box;transform-origin:50% 50%}
@media (prefers-reduced-motion:no-preference){
.spin{animation:spin 12s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
} Characteristics
- SVG text bound to a path with textPath
- Continuous flow by changing startOffset
- Circular badges slowly spinning
- Phrase repeated to fill the whole path
- Guide line shown or hidden
Palette
Click a swatch to copy it
Typography
Headings · Fraunces Text on Path
Body · Work Sans A phrase flows along a curve, a wave or a circle instead of a straight line, like an endless moving ribbon. It shows up in spinning badges, decorative headlines and scroll-linked sections.
Motion
- Easing
linear per lo scorrimento continuo, oppure legato allo scroll- Typical duration
- 10–30 s per giro completo
- Techniques
- SVG textPath con startOffset, requestAnimationFrame, CSS offset-path per singole lettere, rotate() su badge circolari, GSAP ScrollTrigger, getComputedTextLength()
Accessibility (reduced motion)
Leave the text still on the curve and the badge unrotated; the shape stays readable when static.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Text on Path (Testo su tracciato, Texto en trazado). A phrase flows along a curve, a wave or a circle instead of a straight line, like an endless moving ribbon. It shows up in spinning badges, decorative headlines and scroll-linked sections. Characteristics: SVG text bound to a path with textPath, Continuous flow by changing startOffset, Circular badges slowly spinning, Phrase repeated to fill the whole path, Guide line shown or hidden. Palette: #F1ECE2, #1E1A17, #E2532D, #2F6B4F, #E9B949. Typography: headings in Fraunces, body text in Work Sans (Google Fonts or equivalents). Mood: playful, elegant, organic. Motion: easing linear per lo scorrimento continuo, oppure legato allo scroll, typical duration 10–30 s per giro completo; techniques: SVG textPath con startOffset, requestAnimationFrame, CSS offset-path per singole lettere, rotate() su badge circolari, GSAP ScrollTrigger, getComputedTextLength(). With prefers-reduced-motion: Leave the text still on the curve and the badge unrotated; the shape stays readable when static. References: MDN «<textPath>», CSS «offset-path» su MDN, badge rotanti dei siti premiati su Awwwards, Codrops «Animated Text on SVG Path».
For images
Create the image in this visual style: Text on Path (Testo su tracciato, Texto en trazado). A phrase flows along a curve, a wave or a circle instead of a straight line, like an endless moving ribbon. It shows up in spinning badges, decorative headlines and scroll-linked sections. Characteristics: SVG text bound to a path with textPath, Continuous flow by changing startOffset, Circular badges slowly spinning, Phrase repeated to fill the whole path, Guide line shown or hidden. Keywords: typography flowing along a wavy curved line, rotating circular text badge, serif lettering following an s-shaped path, warm cream background, terracotta green and mustard accents, editorial website hero, ribbon of words in motion. Palette: #F1ECE2, #1E1A17, #E2532D, #2F6B4F, #E9B949. Mood: playful, elegant, organic. Avoid: straight horizontal text only, distorted unreadable letters, cluttered collage, neon cyberpunk.
Relations
Derives from
Similar to
References
- MDN «<textPath>»
- CSS «offset-path» su MDN
- badge rotanti dei siti premiati su Awwwards
- Codrops «Animated Text on SVG Path»