
Speeding marquee
Scroll, Text, Hover
The method for brown butter gnocchi on a made-up recipe site, Fennel Row, in a card on warm white: four steps, the one in hand lit in butter amber with its words rising in and its timer running, the digits rolling like an odometer and the ring emptying. Tick the step and the circle fills on a spring, the check draws itself, a hand drawn line strikes the name through, the dashed rail fills down to the next step and that one lights up with its own timer, while the «Then» line at the bottom rolls to what comes next. On hover the step's name widens on the wdth axis and a ghost of the check appears.
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>
<!--
"Recipe method steps" 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>Fennel Row, brown butter gnocchi, the method</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the method of a recipe on a made-up cooking site, Fennel Row. The step in hand is lit with its timer running;
ticking it draws a line through its name, the rail fills down to the next step and that one lights up with
its own timer. Hovering a step widens its name. Left alone, a drawn pointer cooks the recipe by itself -->
<article class="method" data-card>
<header class="method__head">
<div class="brand">
<svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 21V10.5"/>
<path d="M12 13.5c-3.6-.4-6-3-6-7.3 3.7.1 6 2.6 6 7.3z"/>
<path d="M12 11c.2-4 2.4-6.4 6-6.6 0 4-2.3 6.4-6 6.6z"/>
</svg>
<span class="brand__name">Fennel Row</span>
<span class="brand__tag">Method</span>
</div>
<h1 class="method__title">Brown butter gnocchi</h1>
<div class="meta">
<span class="meta__item">Serves 2</span>
<span class="meta__rule" aria-hidden="true"></span>
<span class="meta__item">Time left <span class="clock clock--meta" data-total aria-hidden="true"></span><span class="sr" data-total-sr>7:15</span></span>
</div>
</header>
<div class="steps">
<span class="rail" aria-hidden="true"><span class="rail__fill" data-rail></span></span>
<ol class="steps__list" data-list>
<li class="step" data-step data-sec="120">
<button class="tick" type="button" aria-pressed="false" data-tick>
<span class="sr">Mark as done: </span>
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle class="tick__ring" cx="12" cy="12" r="10.25"/>
<circle class="tick__fill" cx="12" cy="12" r="10.25"/>
<path class="tick__ghost" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
<path class="tick__mark" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
</svg>
</button>
<div class="step__main">
<h2 class="step__name" data-name><span class="step__word">Boil the gnocchi</span>
<svg class="strike" viewBox="0 0 100 10" preserveAspectRatio="none" aria-hidden="true"><path d="M1 5.6C22 4.2 41 6.4 60 5 75 4 88 5.6 99 4.8" pathLength="1"/></svg>
</h2>
<div class="step__body" data-body><p>Salt the water until it tastes of the sea, drop in 500 g of gnocchi and lift them out as they float.</p></div>
</div>
<button class="chip" type="button" data-chip aria-label="Timer, 2 minutes">
<svg class="chip__ring" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6"/><circle class="chip__left" cx="8" cy="8" r="6" pathLength="1"/></svg>
<span class="chip__face"><span class="clock" data-clock></span><span class="chip__done" aria-hidden="true">Done</span></span>
</button>
</li>
<li class="step" data-step data-sec="210">
<button class="tick" type="button" aria-pressed="false" data-tick>
<span class="sr">Mark as done: </span>
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle class="tick__ring" cx="12" cy="12" r="10.25"/>
<circle class="tick__fill" cx="12" cy="12" r="10.25"/>
<path class="tick__ghost" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
<path class="tick__mark" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
</svg>
</button>
<div class="step__main">
<h2 class="step__name" data-name><span class="step__word">Brown the butter</span>
<svg class="strike" viewBox="0 0 100 10" preserveAspectRatio="none" aria-hidden="true"><path d="M1 4.8C18 6 37 4 58 5.4 74 6.2 87 4.4 99 5.4" pathLength="1"/></svg>
</h2>
<div class="step__body" data-body><p>Melt 60 g of butter over a medium flame until it foams, smells of hazelnut and turns amber.</p></div>
</div>
<button class="chip" type="button" data-chip aria-label="Timer, 3 minutes 30">
<svg class="chip__ring" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6"/><circle class="chip__left" cx="8" cy="8" r="6" pathLength="1"/></svg>
<span class="chip__face"><span class="clock" data-clock></span><span class="chip__done" aria-hidden="true">Done</span></span>
</button>
</li>
<li class="step" data-step data-sec="60">
<button class="tick" type="button" aria-pressed="false" data-tick>
<span class="sr">Mark as done: </span>
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle class="tick__ring" cx="12" cy="12" r="10.25"/>
<circle class="tick__fill" cx="12" cy="12" r="10.25"/>
<path class="tick__ghost" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
<path class="tick__mark" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
</svg>
</button>
<div class="step__main">
<h2 class="step__name" data-name><span class="step__word">Crisp the sage</span>
<svg class="strike" viewBox="0 0 100 10" preserveAspectRatio="none" aria-hidden="true"><path d="M1 5.2C20 4 39 6.2 57 4.9 76 3.8 89 5.8 99 5" pathLength="1"/></svg>
</h2>
<div class="step__body" data-body><p>Lay twelve sage leaves in the butter and leave them until they stop hissing.</p></div>
</div>
<button class="chip" type="button" data-chip aria-label="Timer, 1 minute">
<svg class="chip__ring" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6"/><circle class="chip__left" cx="8" cy="8" r="6" pathLength="1"/></svg>
<span class="chip__face"><span class="clock" data-clock></span><span class="chip__done" aria-hidden="true">Done</span></span>
</button>
</li>
<li class="step" data-step data-sec="45">
<button class="tick" type="button" aria-pressed="false" data-tick>
<span class="sr">Mark as done: </span>
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle class="tick__ring" cx="12" cy="12" r="10.25"/>
<circle class="tick__fill" cx="12" cy="12" r="10.25"/>
<path class="tick__ghost" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
<path class="tick__mark" d="M7.6 12.4l2.9 2.9 5.9-6.2" pathLength="1"/>
</svg>
</button>
<div class="step__main">
<h2 class="step__name" data-name><span class="step__word">Toss and plate</span>
<svg class="strike" viewBox="0 0 100 10" preserveAspectRatio="none" aria-hidden="true"><path d="M1 4.9C21 5.9 40 4.1 59 5.3 75 6 88 4.6 99 5.2" pathLength="1"/></svg>
</h2>
<div class="step__body" data-body><p>Fold the gnocchi through the butter, then finish with lemon zest and a snow of pecorino.</p></div>
</div>
<button class="chip" type="button" data-chip aria-label="Timer, 45 seconds">
<svg class="chip__ring" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6"/><circle class="chip__left" cx="8" cy="8" r="6" pathLength="1"/></svg>
<span class="chip__face"><span class="clock" data-clock></span><span class="chip__done" aria-hidden="true">Done</span></span>
</button>
</li>
</ol>
</div>
<footer class="method__foot">
<span class="next">
<span class="next__label" data-next-label>Then</span>
<span class="next__win"><span class="next__text" data-next>Brown the butter</span></span>
</span>
<button class="again" type="button" data-again>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.2 8.6a4.9 4.9 0 1 0 1.5-4.1"/><path d="M4.6 1.9v2.8h2.8"/></svg>
<span>Cook again</span>
</button>
</footer>
</article>
<svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.
42 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 “Recipe method steps” from Animorio and fit it into my siteEach clock is three reels (minutes, tens and units of seconds), each a column of digits with the zero repeated at the end. The value stays continuous: units sit at v modulo 10, tens only move during the last second before the carry and minutes during the last second of the minute, so the digits pass the turn along as on a real odometer. Each reel moves with translateY as a percentage of its column.
The countdown is a GSAP tween on the value from 120 (or 210, 60, 45) to zero on power2.inOut: it starts slow, so 2:00 and 1:59 can be read, runs, then brakes over the last seconds. The same value moves the ring (stroke-dashoffset from 0 to 1 with pathLength 1) and the total at the top, the sum of the four timers.
The circle squashes to 0.86 and comes back on elastic.out, its fill grows from scale 0 on back.out, the check draws with stroke-dashoffset from 1 to 0. The strike is a faintly wavy SVG path with preserveAspectRatio none: its box stretches almost equally in width and height, so the stroke stays thin: it draws in 0.6 s on power2.inOut and the name moves 2 px as it passes, as if pushed by the pen.
The step's text opens with height auto in 0.6 s and the words, split into spans, rise half a line one after the other, 0.025 s apart. The rail and the amber glow behind the step are measured every frame from the real position of the circles, because heights change while texts open and close: the rail fills chasing the step with a factor of 0.12.
The name uses variable Mona Sans with font-variation-settings 'wdth' var(--w): on hover GSAP takes --w from 100 to 118 on back.out(2.2), and back on power3.out. The circle grows 6% and shows the check in grey, a preview of the gesture.
| Name | File | Default | What it changes |
|---|---|---|---|
TIMER_SPEED | script.js | 1 | How fast the timers run down in the demo: 2 twice as fast, 0.5 half. |
STRIKE_TIME | script.js | 0.6 | Seconds the line takes to cross the name of a done step. |
OPEN_TIME | script.js | 0.6 | Seconds the next step takes to open. |
WIDEN | script.js | 118 | Width of a step's name under the pointer, on the wdth axis (100 normal, 125 widest). |
SPRING | script.js | 2.2 | How far the tick overshoots as it fills: 0 no bounce. |
WORD_STAGGER | script.js | 0.025 | Seconds between one word and the next as a step opens. |
RAIL | script.js | true | The dashed rail beside the ticks fills down as you cook. |
SPEED | script.js | 1 | Speed of the pointer that plays by itself: 2 twice as fast, 0.5 half. |
LOOP | script.js | true | The pointer cooks the recipe again and again. |
On the recipe page of a food blog, a recipe site, a cooking course or a restaurant dish page: when readers cook with their phone beside the stove and need to know where they are. It also suits the steps of a tutorial, a DIY assembly or a to do list in an app.
The same animation with adapted sizes: the card is 92% of the screen wide and its size also follows the height of the window, so the four steps with the open text fit the box. A finger taps the circle to tick and the timer to pause it; the name only widens with a mouse.
Nothing moves: digits change in steps without rolling, texts fade in already in place, the check and the strike appear whole, the rail fills at once and the pilot's pointer is hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 9 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.