Skip to content
animorio
IT
Back to the library

Washing machine page

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 9.8 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The product page of the Sorell W8 washer, a made-up premium appliance brand, on warm light paper. A sticky stage holds the front-facing washing machine in the middle, drawn clean in 2D: pearl body, detergent drawer, monospace display, chrome knob with its ticks, porthole with a chrome ring and glass with one reflection. Scrolling runs a whole wash: the porthole opens a little, a folded garment goes in, the door shuts with a bounce, the water rises in the porthole with a wave and the drum spins faster and faster with the scroll. Three lines of features come in from the sides, one per stage, with their figures counting up from zero: «Quiet at 46 dB», «A wash in 28 minutes», «40% less water». At the end the drum slows, rocks once, the water drains and the display says «Done». GSAP with ScrollTrigger (scrub) and Lenis.

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>
<!--
  "Washing machine page" 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>Sorell W8 washer</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the product page of a made-up premium appliance maker, Sorell. The stage sticks while you scroll: the porthole
       opens a little, a folded towel goes in, the door shuts, the water rises with a wave and the drum spins faster
       and faster; three lines of features come in, one per stage, with their figures counting up. At the end the
       drum slows down, the water drains and the display says Done. -->
  <main>
    <section class="corsa" data-corsa>
      <div class="palco" data-palco>
        <div class="alone" aria-hidden="true"></div>

        <header class="testa">
          <p class="marchio">
            <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5.2"/></svg>
            <span>Sorell</span>
          </p>
          <p class="modello"><span>W8 washer</span><span class="modello__prezzo">from $1,290</span></p>
        </header>

        <div class="scena" data-scena>
          <div class="macchina" data-macchina>
            <svg class="lavatrice" viewBox="0 0 300 384" role="img" aria-label="A front-loading washing machine">
              <defs>
                <linearGradient id="g-corpo" x1="0" y1="0" x2="1" y2="1">
                  <stop offset="0" stop-color="var(--corpo-alto)"/>
                  <stop offset="1" stop-color="var(--corpo)"/>
                </linearGradient>
                <linearGradient id="g-cromo" x1="0.15" y1="0" x2="0.85" y2="1">
                  <stop offset="0" stop-color="#fdfdfc"/>
                  <stop offset="0.28" stop-color="#b9bcbf"/>
                  <stop offset="0.5" stop-color="#eef0f1"/>
                  <stop offset="0.72" stop-color="#8f9397"/>
                  <stop offset="1" stop-color="#dfe1e2"/>
                </linearGradient>
                <radialGradient id="g-cestello" cx="0.5" cy="0.42" r="0.6">
                  <stop offset="0" stop-color="#5a5f65"/>
                  <stop offset="1" stop-color="#25282c"/>
                </radialGradient>
                <radialGradient id="g-manopola" cx="0.38" cy="0.32" r="0.75">
                  <stop offset="0" stop-color="#ffffff"/>
                  <stop offset="0.6" stop-color="#d9dbdc"/>
                  <stop offset="1" stop-color="#a9adb0"/>
                </radialGradient>
                <linearGradient id="g-acqua" x1="0" y1="0" x2="0" y2="1">
                  <stop offset="0" stop-color="var(--accento)" stop-opacity="0.5"/>
                  <stop offset="1" stop-color="var(--accento-fondo)" stop-opacity="0.85"/>
                </linearGradient>
                <linearGradient id="g-vetro" x1="0.1" y1="0" x2="0.7" y2="1">
                  <stop offset="0" stop-color="#eaf3fa" stop-opacity="0.22"/>
                  <stop offset="0.4" stop-color="#cfe0ea" stop-opacity="0.05"/>
                  <stop offset="1" stop-color="#0d1a24" stop-opacity="0.1"/>
                </linearGradient>
                <filter id="f-ombra" x="-20%" y="-50%" width="140%" height="200%"><feGaussianBlur stdDeviation="6"/></filter>
                <clipPath id="c-vetro"><circle cx="150" cy="222" r="74"/></clipPath>
              </defs>

              <ellipse class="ombra" cx="150" cy="370" rx="128" ry="7" filter="url(#f-ombra)"/>
              <rect class="piede" x="38" y="352" width="22" height="14" rx="3"/>
              <rect class="piede" x="240" y="352" width="22" height="14" rx="3"/>

              <g data-corpo>
                <rect class="corpo" x="18" y="8" width="264" height="350" rx="24" fill="url(#g-corpo)"/>
                <rect class="corpo__filo" x="18.5" y="8.5" width="263" height="349" rx="23.5"/>
                <path class="corpo__luce" d="M40 9.5h220"/>
                <path class="giunta" d="M19 82h262"/>
                <path class="giunta giunta--chiara" d="M19 83h262"/>

                <!-- the detergent drawer -->
                <rect class="cassetto" x="34" y="28" width="62" height="34" rx="7"/>
                <path class="cassetto__maniglia" d="M48 54h34"/>

                <!-- the display -->
                <rect class="schermo" x="110" y="26" width="98" height="38" rx="9"/>
                <rect class="schermo__riflesso" x="111" y="27" width="96" height="14" rx="8"/>
                <text class="schermo__testo" x="159" y="47" data-schermo>Ready</text>
                <path class="schermo__binario" d="M124 55h70"/>
                <path class="schermo__corsa" d="M124 55h70" data-corsa-schermo/>

                <!-- the knob, with its ticks -->
                <g class="tacche" data-tacche></g>
                <g data-manopola class="manopola">
                  <circle cx="246" cy="45" r="17" fill="url(#g-manopola)"/>
                  <circle class="manopola__filo" cx="246" cy="45" r="16.5"/>
                  <circle class="manopola__dentro" cx="246" cy="45" r="11.5"/>
                  <path class="manopola__segno" d="M246 32.5v6"/>
                </g>

                <!-- the opening behind the door: rubber gasket and the drum -->
                <circle class="guarnizione" cx="150" cy="222" r="86"/>
                <circle class="guarnizione__piega" cx="150" cy="222" r="79"/>
                <g clip-path="url(#c-vetro)">
                  <circle cx="150" cy="222" r="74" fill="url(#g-cestello)"/>
                  <g data-cestello class="cestello"></g>
                  <g data-capo class="capo">
                    <rect x="-26" y="-15" width="52" height="30" rx="6" class="capo__stoffa"/>
                    <path class="capo__piega" d="M-26 -3h52"/>
                    <path class="capo__bordo" d="M-22 9h44"/>
                    <path class="capo__ombra" d="M-26 -2h52v11a6 6 0 0 1-6 6h-40a6 6 0 0 1-6-6z"/>
                  </g>
                  <path class="acqua" data-acqua fill="url(#g-acqua)"/>
                  <path class="acqua__pelo" data-pelo/>
                  <g data-bolle class="bolle"></g>
                </g>
                <g data-capo-fuori class="capo capo--fuori">
                  <rect x="-26" y="-15" width="52" height="30" rx="6" class="capo__stoffa"/>
                  <path class="capo__piega" d="M-26 -3h52"/>
                  <path class="capo__bordo" d="M-22 9h44"/>
                </g>

                <!-- the door: chrome ring, glass, reflection. It opens on the hinge on the left -->
                <g data-porta class="porta">
                  <path class="cerniera" d="M60 196v52"/>
                  <circle cx="150" cy="222" r="84.5" fill="none" stroke="url(#g-cromo)" stroke-width="15"/>
                  <circle class="cromo__filo" cx="150" cy="222" r="91.5"/>
                  <circle class="cromo__dentro" cx="150" cy="222" r="77.5"/>
                  <circle cx="150" cy="222" r="75" fill="url(#g-vetro)"/>
                  <circle class="vetro__filo" cx="150" cy="222" r="74.5"/>
                  <g data-riflesso>
                    <path class="riflesso" d="M96 190a64 64 0 0 1 58-38"/>
                    <path class="riflesso riflesso--fine" d="M100 210a56 56 0 0 1 8-24"/>
                  </g>
                  <rect class="maniglia" x="236" y="206" width="9" height="32" rx="4.5"/>
                </g>
              </g>
            </svg>
          </div>

          <div class="righe" data-righe>
            <p class="invito" data-invito>
              <span>Scroll to start a wash</span>
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.5v9M4.5 9 8 12.5 11.5 9"/></svg>
            </p>
            <div class="riga" data-riga>
              <p class="riga__nome">Brushless direct drive</p>
              <p class="riga__dato">Quiet at <span class="cifra" data-cifra="46">46</span> dB</p>
            </div>
            <div class="riga" data-riga>
              <p class="riga__nome">QuickWash programme</p>
              <p class="riga__dato">A wash in <span class="cifra" data-cifra="28">28</span> minutes</p>
            </div>
            <div class="riga" data-riga>
              <p class="riga__nome">Load sensing</p>
              <p class="riga__dato"><span class="cifra" data-cifra="40">40</span>% less water</p>
            </div>
          </div>
        </div>
      </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/lenis@1.3.26/dist/lenis.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.

33 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 “Washing machine page” 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 warm light paper sit the Sorell mark at the top, the «W8 washer» name with its price, and in the middle the front-facing washing machine: a pearl body with a thread of light along the top, the detergent drawer, a monospace display that starts on «Ready», the chrome knob with its ticks and the big porthole with a chrome ring, glossy glass and an arc of reflection. Scrolling down starts a wash: the display turns to «Load», the porthole swings open on the left hinge, a folded sand-coloured garment comes in from the right in a small arc and drops into the drum; the door shuts with a bounce and the knob clicks to the «Cotton 40» programme. Then blue water rises inside the porthole with a moving wave, bubbles rise and the drum starts to turn, faster and faster as you scroll: the garment tumbles with the drum's paddles, the water tilts a little the way it spins and at full speed the machine trembles by a pixel. The display counts down from 28 minutes on a filling track. From the sides, one per stage, three lines come in: «Brushless direct drive — Quiet at 46 dB», «QuickWash programme — A wash in 28 minutes», «Load sensing — 40% less water», their figures counting up from zero and taking the blue when they arrive. At the end the drum slows, the water drains, the machine rocks once and stops, and the display says «Done». On a narrow screen the washer sits in the middle and the three lines pass one at a time beneath it. With a mouse the glass reflection follows the pointer and a click on the knob snaps it with a spring.

How it works

The washer in SVG

The machine is a single SVG in a 300 by 384 viewBox: the body with two gradients (from a lit top to shadow), the drawer, the display, the chrome knob with a radial gradient and ticks laid out in a circle, the porthole with its dark gasket, the drum and, over it, the chrome ring with a gradient that fakes metal. The glass is a near-transparent circle so you see inside; the drum's holes and paddles are drawn with a loop.

One timeline, moved by the scroll

A paused GSAP timeline marks every stage (door, garment, water, drum speed, lines, «Done») over ten seconds; ScrollTrigger with scrub runs it forward and back with the scroll, on a 660vh section with a sticky stage. Lenis (lerp 0.1) scrolls smoothly and updates ScrollTrigger. No value is ever tweened per frame by the scroll: the scroll only moves the timeline's playhead.

The drum has its own clock

The timeline does not turn the drum: it only gives it a speed (turns a second). One loop on GSAP's ticker adds dt times the speed to the angle each frame, so speeding up or scrolling back never makes the drum jump to another point: the speed changes, not the angle. The garment tumbles along the same angle while it is inside.

The water with its wave

The water's surface is a path rebuilt every frame over twenty-five points: two summed sines make the wave, higher when the drum spins, and a slight tilt pulls the level the way it turns. The bubbles rise only within the water and only while the drum turns. Everything is clipped inside the porthole circle with a clip-path.

The lines and the display

The three lines come in one per stage (each with its own sub-state in the timeline) and, where there is room, stay in a column beside the machine; on a narrow screen they overlap and pass one at a time beneath it. The figures count up from the value read off the state, with no tween per figure. The display is monospace text that changes with the timeline's playhead: «Ready», «Load», «Cotton 40», the countdown, «Done».

The fine details

The door opens by squashing its scaleX from the left hinge, not by rotating, so it stays clean; the glass reflection drifts slowly behind the pointer with a mouse; the knob follows the programme with an elastic and clicks a notch on a tap; at full speed the machine trembles by less than a pixel and rocks once at the end before it stops.

Values to change

NameFileDefaultWhat it changes
TOP_SPEEDscript.js2.6How fast the drum spins at the top of the wash, in turns a second.
WATERscript.js0.62How high the water rises in the porthole: 1 fills it.
WAVEscript.js5The height of the wave on the water, in drawing units.
DOORscript.js0.5How much the door opens: 0 stays shut, 1 opens flat.
SHAKEscript.js0.7How much the machine trembles at full spin, in pixels: 0 never.
RIDEscript.js1How much scroll the whole wash takes: 2 is twice as long.

Try them in the Playground

When to use it

For the product page of an appliance or object where something happens as you scroll: a washer, a dishwasher, a coffee machine, an oven. The scroll tells what the product does, and the feature figures count up stage by stage. It also suits the landing page of a premium technical product.

On phones

The same animation with adapted sizes: the washer is measured on width and height with min(vw, vh), sits in the middle and the three lines pass one at a time beneath it instead of beside it. The wash is the same, all inside the frame.

With reduced motion

No movement: the machine fades in, the drum does not turn or tremble, the water is a still level with no wave, the bubbles are gone and the garment is already in the drum. The lines fade in with their figures already at value; the display and the water level still follow the scroll position, as they are only a result, not a movement.

Pitfalls

  • The porthole glass cannot be a solid circle, nor the chrome ring a solid disc, or you would see a mirror and nothing inside: the ring is a circle with stroke only (a donut) and the glass is near-transparent, so the drum, water and garment show beneath.
  • Speeding the drum up by changing a duration would make it jump: here the timeline only gives a speed and a separate loop adds the angle, so scrolling back and forth never makes it jump.
  • The water and bubbles must be clipped to the porthole circle with a clip-path, or they spill out of the glass when the wave is high.
  • The door opens by squashing its scaleX from the left hinge, not by rotating in 3D (forbidden) nor with a rotate that would push it out of the body.
  • Under prefers-reduced-motion the water wave, the tremble and the bubbles use the clock: they must be switched off, or they would move on their own even at rest.
  • The machine is measured on height with min(vh, vw): measured on vw alone it drops below the edge in the phone's short frame.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.8 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 13 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