Skip to content
animorio
IT
Back to the library

Recipe method steps

Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a paper coloured page with soft light and grain, a warm white card with a layered shadow: at the top the Fennel Row mark (a fennel frond in lines), the Method pill, the title Brown butter gnocchi, Serves 2 and Time left with rolling digits. Below, four steps with a dashed rail on the left joining the tick circles: Boil the gnocchi, Brown the butter, Crisp the sage, Toss and plate, each with its timer in a pill. The step in hand has a dark name, a butter amber circle, its text opening with the words rising one by one and its timer lighting up: the pill turns pale amber, the countdown starts slow, runs and brakes at the end, the digits on three reels passing the carry like an odometer while a thin ring empties; at zero the digits leave upwards, Done comes in and a ghost of the check appears. Tick the step and the circle squashes and fills on a spring, the white check draws itself, a faintly wavy line strikes the name from left to right, the text folds away, the rail fills down to the next step, an amber glow slides behind it and its timer starts; at the bottom «Then» rolls to the name of the following step. At the end the line says Ready to plate and the Cook again pill arrives, pulling the lines back from the right and emptying the circles. On hover a step's name widens on the wdth axis with a little bounce and its circle shows the check in grey; tapping the timer pauses it. Left alone, a drawn pointer tries two steps and cooks the whole recipe, again and again.

How it works

The odometer

Each 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 timer that brakes

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 check and the line

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 next step

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 that widens

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.

Values to change

NameFileDefaultWhat it changes
TIMER_SPEEDscript.js1How fast the timers run down in the demo: 2 twice as fast, 0.5 half.
STRIKE_TIMEscript.js0.6Seconds the line takes to cross the name of a done step.
OPEN_TIMEscript.js0.6Seconds the next step takes to open.
WIDENscript.js118Width of a step's name under the pointer, on the wdth axis (100 normal, 125 widest).
SPRINGscript.js2.2How far the tick overshoots as it fills: 0 no bounce.
WORD_STAGGERscript.js0.025Seconds between one word and the next as a step opens.
RAILscript.jstrueThe dashed rail beside the ticks fills down as you cook.
SPEEDscript.js1Speed of the pointer that plays by itself: 2 twice as fast, 0.5 half.
LOOPscript.jstrueThe pointer cooks the recipe again and again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The rail and the glow behind the step must be measured every frame, not once: while one text opens and another closes the circles move, and a measure taken at the click leaves the rail short or long.
  • The odometer carry: if the tens move with a continuous v/10 they always sit halfway and can't be read; they must stay put and only turn during the last second before the change.
  • The strike draws with pathLength 1 and stroke-dasharray: with vector-effect non-scaling-stroke the dashes are measured in screen pixels instead of the length 1, and a piece of the line shows before the step is even ticked.
  • Undoing a done step must pull the line onwards (stroke-dashoffset towards −1) and only then reset it to 1: going straight back to 1 the line shrinks right to left as if drawn backwards, and a jump shows.

Libraries

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.

Testing

Tested on 9 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations