Text fill on scroll
Scroll text highlight · Text fill on scroll · Texto que se rellena al hacer scroll · Evidenziazione parola per parola · Scroll-linked text reveal
A large paragraph starts almost transparent and, as you scroll, its words light up one after another to full colour like a guided reading. Spread by Apple product pages and startup sites, it turns a manifesto into a small narrative moment.
- Era
- 2019 – today
- Origin
- Stati Uniti
- Use
- Niche
- Geography
- United States
Live demo
View code
<main class="root">
<small>02 — Il rito del mattino</small>
<p><span style="--i:0">Ogni</span> <span style="--i:1">mattina</span> <span style="--i:2">Giulia</span> <span style="--i:3">pedala</span> <span style="--i:4">fino</span> <span style="--i:5">al</span> <span class="a" style="--i:6">caffè</span> <span class="a" style="--i:7">all'angolo.</span> <span style="--i:8">Ordina</span> <span style="--i:9">un</span> <span style="--i:10">cappuccino,</span> <span style="--i:11">apre</span> <span style="--i:12">il</span> <span style="--i:13">quaderno</span> <span style="--i:14">e</span> <span style="--i:15">lascia</span> <span style="--i:16">che</span> <span style="--i:17">la</span> <span style="--i:18">città</span> <span style="--i:19">si</span> <span style="--i:20">svegli</span> <span style="--i:21">piano,</span> <span class="a" style="--i:22">una</span> <span class="a" style="--i:23">parola</span> <span class="a" style="--i:24">alla</span> <span class="a" style="--i:25">volta.</span></p>
<div class="track"><u></u></div>
</main> @property --p{syntax:'<number>';inherits:true;initial-value:30}
body{margin:0;height:100vh;display:grid;place-items:center;background:#0F0F12;font-family:'Inter Tight',sans-serif;color:#F5F2EC;overflow:hidden}
.root{position:relative;width:520px;max-width:88vw;--p:30}
small{display:block;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:#8A8794;margin-bottom:14px}
p{margin:0;font-size:clamp(17px,5vw,29px);line-height:1.22;font-weight:700;letter-spacing:-.02em}
p span{opacity:clamp(.16,calc(var(--p) - var(--i)),1)}
p .a{color:#FF8A3D}
.track{position:absolute;right:-16px;top:0;bottom:0;width:2px;background:#2A2A31}
.track u{display:block;width:100%;height:calc(var(--p) / 28 * 100%);background:#FF8A3D;max-height:100%}
@media (prefers-reduced-motion:no-preference){
.root{animation:fill 8s linear infinite}
@keyframes fill{0%,6%{--p:0}66%,88%{--p:28}96%,100%{--p:0}}
}
@media (max-width:420px){.track{right:-10px}} Characteristics
- Large paragraph with tight leading
- Dimmed words at 15–25 % opacity
- Progress tied to scroll position
- Key words in an accent colour
- Section pinned (sticky) until the text is full
Palette
Click a swatch to copy it
Typography
Headings · Inter Tight Text fill on scroll
Body · Inter Tight A large paragraph starts almost transparent and, as you scroll, its words light up one after another to full colour like a guided reading. Spread by Apple product pages and startup sites, it turns a manifesto into a small narrative moment.
Motion
- Easing
lineare legato allo scroll- Typical duration
- legata allo scroll, di solito 1–2 altezze di schermo per il paragrafo intero
- Techniques
- CSS animation-timeline view() su ogni parola, GSAP ScrollTrigger con SplitText, Framer Motion useScroll e useTransform, position sticky, background-clip text con gradiente
Accessibility (reduced motion)
The paragraph is shown at full colour straight away; key words stay highlighted in the accent colour.
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 fill on scroll (Scroll text highlight). A large paragraph starts almost transparent and, as you scroll, its words light up one after another to full colour like a guided reading. Spread by Apple product pages and startup sites, it turns a manifesto into a small narrative moment. Characteristics: Large paragraph with tight leading, Dimmed words at 15–25 % opacity, Progress tied to scroll position, Key words in an accent colour, Section pinned (sticky) until the text is full. Palette: #0F0F12, #F5F2EC, #2A2A31, #FF8A3D, #8A8794. Typography: headings in Inter Tight, body text in Inter Tight (Google Fonts or equivalents). Mood: bold, immersive, subtle. Motion: easing lineare legato allo scroll, typical duration legata allo scroll, di solito 1–2 altezze di schermo per il paragrafo intero; techniques: CSS animation-timeline view() su ogni parola, GSAP ScrollTrigger con SplitText, Framer Motion useScroll e useTransform, position sticky, background-clip text con gradiente. With prefers-reduced-motion: The paragraph is shown at full colour straight away; key words stay highlighted in the accent colour. References: pagine prodotto Apple, GSAP SplitText, MDN «animation-timeline», landing page di startup SaaS.
Relations
Contrasts with
References
- pagine prodotto Apple
- GSAP SplitText
- MDN «animation-timeline»
- landing page di startup SaaS