
Long shadow letters
Text, Scroll, 3D
Scroll inside the preview
A scroll section for Kestova Bio, a made-up biosimilars company, on white. The stage stays put and everything follows the scroll: the huge headline «We measure» rises line by line behind a mask, then Flip shrinks it and flies it into the small label on the left; meanwhile the paragraph rises and lights up word by word, from mist grey to deep teal, with a «head» that moves on without steps. At the turning point the lines fall away, the little diamond makes a quarter turn with a bounce and the second block, «Our goal», comes in; behind it a mist panel rises and four drawn glass vials fan out. Timings and colours taken from the site of a biosimilars company; premium minimal style.
Rebuilt from scratch studying polpharmabiologics.com by Widelab: the idea is theirs; code, copy and images are ours. Read how it’s made
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.
<!doctype html>
<!--
"Title into the label" from Animorio · https://animorio.com
License: free on your own sites and your clients’ sites, paid work included.
Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kestova Bio, we measure</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter-tight@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- a scroll section of a made-up biosimilars company, Kestova Bio. The stage sticks while you scroll: the huge
title rises line by line, then flies (scrubbed with Flip) into the small label on the left; the paragraph rises
and lights up word by word from mist grey to deep teal; at the turning point the lines fall away, the little
diamond makes a quarter turn and the second block comes in, while a mist panel rises behind and the four drawn
vials fan out. -->
<main>
<section class="corsa" data-corsa>
<div class="palco" data-palco>
<div class="pannello" data-pannello aria-hidden="true"></div>
<div class="disco" aria-hidden="true"></div>
<div class="grana" aria-hidden="true"></div>
<header class="testa">
<p class="marchio">
<svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true">
<rect x="5.2" y="5.2" width="13.6" height="13.6" rx="3.6" transform="rotate(45 12 12)"/>
<rect class="marchio__pieno" x="9.4" y="9.4" width="5.2" height="5.2" rx="1.4" transform="rotate(45 12 12)"/>
</svg>
<span>Kestova</span><span class="marchio__bio">Bio</span>
</p>
<p class="testa__voce">Biosimilars</p>
</header>
<!-- the four vials: one element for GSAP (.fiala), the child for the CSS hover -->
<div class="fiale" data-fiale>
<div class="pila" data-pila>
<div class="fiala" data-fiala>
<div class="fiala__corpo" tabindex="0" aria-label="Vial KB-214, 40 milligrams">
<span class="fiala__tappo"></span><span class="fiala__ghiera"></span><span class="fiala__collo"></span>
<span class="fiala__vetro">
<span class="fiala__liquido"></span>
<span class="fiala__etichetta"><b>Kestova</b><i>KB-214</i><em>40 mg / 0.8 mL</em></span>
<span class="fiala__riflesso" data-riflesso></span>
</span>
</div>
<span class="fiala__ombra"></span>
</div>
<div class="fiala" data-fiala>
<div class="fiala__corpo" tabindex="0" aria-label="Vial KB-308, 100 milligrams">
<span class="fiala__tappo"></span><span class="fiala__ghiera"></span><span class="fiala__collo"></span>
<span class="fiala__vetro">
<span class="fiala__liquido"></span>
<span class="fiala__etichetta"><b>Kestova</b><i>KB-308</i><em>100 mg / 4 mL</em></span>
<span class="fiala__riflesso" data-riflesso></span>
</span>
</div>
<span class="fiala__ombra"></span>
</div>
<div class="fiala" data-fiala>
<div class="fiala__corpo" tabindex="0" aria-label="Vial KB-117, 60 milligrams">
<span class="fiala__tappo"></span><span class="fiala__ghiera"></span><span class="fiala__collo"></span>
<span class="fiala__vetro">
<span class="fiala__liquido"></span>
<span class="fiala__etichetta"><b>Kestova</b><i>KB-117</i><em>60 mg / 1 mL</em></span>
<span class="fiala__riflesso" data-riflesso></span>
</span>
</div>
<span class="fiala__ombra"></span>
</div>
<div class="fiala" data-fiala>
<div class="fiala__corpo" tabindex="0" aria-label="Vial KB-452, 150 milligrams">
<span class="fiala__tappo"></span><span class="fiala__ghiera"></span><span class="fiala__collo"></span>
<span class="fiala__vetro">
<span class="fiala__liquido"></span>
<span class="fiala__etichetta"><b>Kestova</b><i>KB-452</i><em>150 mg / 1 mL</em></span>
<span class="fiala__riflesso" data-riflesso></span>
</span>
</div>
<span class="fiala__ombra"></span>
</div>
</div>
</div>
<div class="testo">
<div class="etichetta">
<!-- the place the big title lands in: same text, same font, only smaller -->
<h2 class="titolo titolo--meta" data-meta aria-hidden="true"><span>We</span> <span>measure</span></h2>
<h2 class="titolo titolo--goal" data-goal><span>Our</span> <span>goal</span></h2>
</div>
<div class="blocchi">
<div class="blocco blocco--uno" data-w1>
<p class="frase" data-w1-frase>every molecule against its reference, attribute by attribute, until the two behave as one medicine.</p>
<div class="rombo" aria-hidden="true">
<svg viewBox="0 0 40 40" data-rombo>
<defs><clipPath id="kv-rombo"><rect x="9.1" y="9.1" width="21.8" height="21.8" rx="5" transform="rotate(45 20 20)"/></clipPath></defs>
<rect class="rombo__meta" x="0" y="0" width="20" height="40" clip-path="url(#kv-rombo)"/>
<rect class="rombo__bordo" x="9.1" y="9.1" width="21.8" height="21.8" rx="5" transform="rotate(45 20 20)"/>
</svg>
</div>
<p class="nota" data-w1-nota>Structure, purity, potency.<br>Read side by side, never alone.</p>
</div>
<div class="blocco blocco--due" data-w2>
<p class="frase frase--accesa" data-w2-frase>is a biologic that a patient, a doctor and a regulator cannot tell apart from the one it follows.</p>
<div class="rombo rombo--vuoto" aria-hidden="true"></div>
<p class="nota" data-w2-nota>Same efficacy, same safety.<br>A fraction of the price.</p>
</div>
</div>
</div>
<!-- the big title that flies: positioned in the middle, Flip carries it into the label -->
<div class="volo"><h1 class="titolo titolo--grande" data-grande><span>We</span> <span>measure</span></h1></div>
<footer class="stato" aria-live="polite">
<span class="stato__nome">Comparability study</span>
<span class="stato__tacche" aria-hidden="true"><i data-tacca></i><i data-tacca></i></span>
<span class="stato__valore"><span class="stato__rullo" data-rullo><span>Measuring</span><span>Matched</span></span></span>
<span class="stato__conto"><b data-conto>0</b> / 214 attributes</span>
</footer>
</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/Flip.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/SplitText.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.min.js"></script>
<script src="script.js"></script>
</body>
</html>Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.
48 values to change
With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:
Take “Title into the label” from Animorio and fit it into my siteAs on the site, a single ScrollTrigger on the tall track (start «top top», end «bottom bottom») gives the progress p from 0 to 1, and the stage inside stays put with position: sticky and a 100lvh height. Everything reads p: a paused timeline one unit long is taken to p on every update (the site's scrub: true), and the timed moments play when p crosses a point. Lenis 1.3.26 with lerp 0.05 and wheelMultiplier 1.2 (the site's numbers, though the site runs the old studio-freight Lenis 1.0.23) softens the wheel.
SplitText splits «We measure» into masked lines (type lines, mask lines). At p 0.02 the lines rise from yPercent 115 to 0 in 0.8 s, stagger 0.1, expo.out, timed rather than scrubbed. Between p 0.10 and 0.35 Flip.fit(title, label, { scale: true, ease: 'none' }) inside the timeline carries it, scrubbed, onto the label on the left: an invisible element with the same text, the same font and the same fixed opsz axis, so the proportions match and the scale does not stretch the letters. The big title is centred by a wrapper, because Flip writes the transform on the title and must not wipe the CSS one.
The paragraph is split into lines and words. Between p 0.15 and 0.375, t = (p − 0.15) / 0.225 and head = t × number of words; each word has factor = clamp(0, 1, head − i) and its colour is the interpolation between #E6EFEF and #005453 (the site's numbers). So the word under the head is halfway and the others are either off or lit: a continuous wave, not steps. Ours: with the same factor each word rises from 0.12em lower with a one-pixel overshoot and settles, and the attribute count follows the head.
When p passes 0.55 the lines of the paragraph (and of the note) leave downwards to yPercent 115 in 0.4 s, stagger 0.05, power2.inOut; the title leaves with them; the little diamond turns 90 degrees with back.out(1.7) in 0.5 s; «Our goal» and the second paragraph come in from yPercent 115 to 0 in 1 s, stagger 0.1, expo.out, 0.15 s later. Going back under 0.55 everything returns with power2.out in 0.4 s (0.35 s for the block that leaves). Exit and entrance share the same instant: no gap. The diamond has one filled half, ours, so the quarter turn shows.
The mist panel rises with clip-path: inset(X% 0 0 0) from 100% to 0% between p 0.5 and 0.75. The vials (ours, drawn in CSS: gradient glass, glint, liquid with a meniscus, aluminium crimp, label) straighten up from −14 degrees between 0 and 0.22 (on a computer with autoAlpha as on the site, on a phone with a 24px blur as on the site's mobile) and at 0.55 fan out over 0.30 with power2.out to the site's positions: xPercent −120, −55, 10, 70 and scale 1.40, 1.15, 0.90, 0.70, z-index = scale × 1000. A glint runs across them as they open.
Flip.fit measures positions when it is created, and SplitText measures lines when it splits: if the stage changes size (the demo window changes height while you watch) everything is redone: splits reverted and redone, the timeline rebuilt and taken to the current p, the timed states put straight back in place.
| Name | File | Default | What it changes |
|---|---|---|---|
FLIP_START | script.js | 0.10 | Where in the scroll the title starts flying into the label (the site: 0.10). |
FLIP_END | script.js | 0.35 | Where it lands (the site: 0.35). |
HL_START | script.js | 0.15 | Where the first word starts lighting up (the site: 0.15). |
HL_END | script.js | 0.375 | Where the last word is lit (the site: 0.375). |
SWAP_AT | script.js | 0.55 | The turning point: the lines fall, the diamond turns, the second block comes in (the site: 0.55). |
RISE | script.js | 125 | How far below the paragraph starts, in percent of its height (the site: 125). |
FAN | script.js | 1 | How wide the vials fan out: 1 is the site's spread. |
LERP | script.js | 0.05 | The smoothing of the Lenis scroll: lower is softer (the site: 0.05). |
RIDE | script.js | 1 | How much scroll the section takes: 2 is twice as long. |
For the «about» or «what we do» section of a serious company (pharma, biotech, engineering, finance, professional firms): a mission sentence meant to be truly read, word by word, and a second message that follows, without changing page. It also suits a landing page that introduces a product in two beats.
The same animation with sizes adapted to width and height: the label top left with the vials beside it, the paragraph below, the diamond and the note at the bottom, the status without the study name. The vials appear out of a blur as on the site's mobile version; the timings are the same as on a computer.
No smooth scroll, no flying title or rising lines: the label is already in place, the paragraph stays still and only its colour lights up, word by word. At the turning point the two blocks swap with a fade (the diamond stays still), the panel fades in and the vials are already fanned out.
GSAP 3.15.0, ScrollTrigger 3.15.0, Flip 3.15.0, SplitText 3.15.0, Lenis 1.3.26, Fraunces (font variabile) 5.3.0, Inter Tight (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.7 KB; the libraries: GSAP + ScrollTrigger + SplitText + Flip 58 KB, Lenis 5.3 KB.
Tested on 13 November 2026
Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.