Skip to content
animorio
IT
Back to the library

Double curtain steps

Transitions, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 6.0 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

A step-by-step section for the archive of an invented rowing club: four cards as tall as the screen, Collect, Clean, Catalogue and Store, rise one over the other on scroll while the drawing inside slides down by the same amount and seems to stay still, like a window opening from below. The text drops in from above last, the step before fades to half, the rising card casts a shadow on the one below and, when it stops, the tag on its drawing swings by one degree.

Rebuilt from scratch studying memorial.fcporto.pt by Significa: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Double curtain 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>The archive steps that rise as a double curtain</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@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the made-up archive of a rowing club, Halden, explains how it keeps an old oar in four steps. Each step is a
       card as tall as the screen: it rises from below and covers the one before, while the drawing inside slides
       the other way and seems to stay still, like a window opening upwards. The text drops in last, and the
       little tag on each drawing swings by a degree when the card stops -->
  <main class="pagina">
    <header class="apertura">
      <p class="occhiello">The Halden Rowing Club Archive, since 1891</p>
      <h1 class="apertura__titolo">How we keep<br><em>an oar</em></h1>
      <p class="scendi"><span>Scroll</span><svg viewBox="0 0 12 40" aria-hidden="true"><path class="scendi__riga" d="M6 0v36" /><path d="M2 32l4 6 4-6" /></svg></p>
    </header>

    <section class="passi" aria-label="How we keep an oar">
      <article class="passo" data-passo>
        <div class="passo__disegno" data-disegno aria-hidden="true">
          <svg viewBox="0 0 320 220">
            <g class="tratto">
              <g transform="rotate(-22 160 110)">
                <rect x="14" y="104" width="46" height="12" rx="6" class="pieno-tenue" />
                <path d="M60 108H200M60 112H200" />
                <rect x="118" y="103" width="22" height="14" rx="2" />
                <path d="M126 103v14M132 103v14" class="sottile" />
                <path d="M200 106C230 100 262 92 296 96C305 100 305 120 296 124C262 128 230 120 200 114Z" class="pieno-blu" />
                <path d="M214 110C240 107 266 104 292 106" class="sottile" />
              </g>
              <path d="M30 196H290" class="sottile" />
            </g>
            <g class="cartellino" data-cartellino data-perno="151.5 115.6">
              <path d="M151.5 115.6V134" class="sottile" />
              <path d="M138.5 140L145.5 133H157.5L164.5 140V170H138.5Z" class="pieno-carta" />
              <circle cx="151.5" cy="139" r="2" />
              <path d="M144 150h15M144 156h11M144 162h13" class="sottile" />
            </g>
          </svg>
        </div>
        <div class="passo__testo" data-testo>
          <p class="testata"><span>How we keep an oar</span><span>Halden Archive</span></p>
          <h2 class="passo__titolo">Collect</h2>
          <span class="passo__linea" data-linea></span>
          <p class="passo__frase">Oars come in from the boathouse, from attics and from the families of old crews. Each one is logged the day it arrives.</p>
        </div>
      </article>

      <article class="passo" data-passo>
        <div class="passo__disegno" data-disegno aria-hidden="true">
          <svg viewBox="0 0 320 220">
            <g class="tratto">
              <path d="M14 132H96M14 136H96" />
              <path d="M96 128C140 118 196 106 252 110C290 113 304 124 300 134C296 144 280 148 252 148C196 150 140 142 96 140Z" class="pieno-blu" />
              <path d="M112 134C160 128 214 122 286 126" class="sottile" />
              <path d="M118 112C136 104 156 100 176 100M126 100C142 94 158 92 172 92" class="sottile tratteggio" />
              <path d="M196 150L282 140C288 140 292 144 294 150L304 182C305 187 302 190 296 190L208 196C202 196 198 193 197 188L190 158C189 154 191 151 196 150Z" class="pieno-carta" />
              <path d="M236 146L246 193M266 143L274 191" class="sottile tratteggio" />
              <path d="M200 162C230 158 262 156 290 152" class="sottile" />
              <path d="M36 196H286" class="sottile" />
            </g>
            <g class="cartellino" data-cartellino data-perno="40 136">
              <path d="M40 136V150" class="sottile" />
              <path d="M27 156L34 149H46L53 156V180H27Z" class="pieno-carta" />
              <circle cx="40" cy="155" r="2" />
              <path d="M33 165h14M33 170h10" class="sottile" />
            </g>
          </svg>
        </div>
        <div class="passo__testo" data-testo>
          <p class="testata"><span>How we keep an oar</span><span>Halden Archive</span></p>
          <h2 class="passo__titolo">Clean</h2>
          <span class="passo__linea" data-linea></span>
          <p class="passo__frase">A soft cloth, warm water and no hurry. The varnish stays; the dust and the river mud go.</p>
        </div>
      </article>

      <article class="passo" data-passo>
        <div class="passo__disegno" data-disegno aria-hidden="true">
          <svg viewBox="0 0 320 220">
            <g class="tratto">
              <path d="M204 186L282 120L290 128L212 194L198 198Z" />
              <path d="M276 125L284 133" class="sottile" />
              <path d="M28 202H292" class="sottile" />
            </g>
            <g class="cartellino" data-cartellino data-perno="138 14">
              <path d="M138 14C120 20 116 34 128 44M138 14C156 20 160 34 148 44" class="sottile" />
              <path d="M96 64L124 40H152L180 64V188H96Z" class="pieno-carta" />
              <circle cx="138" cy="56" r="5" />
              <circle cx="138" cy="56" r="8" class="sottile" />
              <text x="108" y="96" class="scritta">Oar, spruce</text>
              <text x="108" y="118" class="scritta">1907, coxed four</text>
              <text x="108" y="140" class="scritta">Shelf C</text>
              <path d="M108 160H166M108 170H150" class="sottile" />
            </g>
          </svg>
        </div>
        <div class="passo__testo" data-testo>
          <p class="testata"><span>How we keep an oar</span><span>Halden Archive</span></p>
          <h2 class="passo__titolo">Catalogue</h2>
          <span class="passo__linea" data-linea></span>
          <p class="passo__frase">Every oar gets a tag: the wood, the boat it rowed in and the year of its last race.</p>
        </div>
      </article>

      <article class="passo" data-passo>
        <div class="passo__disegno" data-disegno aria-hidden="true">
          <svg viewBox="0 0 320 220">
            <g class="tratto">
              <path d="M44 92L244 92L284 70L84 70Z" class="pieno-carta" />
              <path d="M70 92C96 76 130 74 160 80C188 86 214 80 236 74" class="sottile" />
              <path d="M44 92V192H244V92" class="pieno-blu" />
              <path d="M244 192L284 170V70" />
              <path d="M40 88H248L252 100H36Z" class="pieno-carta" />
              <rect x="102" y="122" width="84" height="36" rx="2" />
              <text x="144" y="144" class="scritta scritta--centro">Oars, 1900 to 1930</text>
              <path d="M58 140h14" />
              <path d="M24 204H296" class="sottile" />
            </g>
            <g class="cartellino" data-cartellino data-perno="65 140">
              <path d="M65 140V152" class="sottile" />
              <path d="M53 158L59 152H71L77 158V180H53Z" class="pieno-carta" />
              <circle cx="65" cy="157" r="2" />
              <path d="M59 166h12M59 171h9" class="sottile" />
            </g>
          </svg>
        </div>
        <div class="passo__testo" data-testo>
          <p class="testata"><span>How we keep an oar</span><span>Halden Archive</span></p>
          <h2 class="passo__titolo">Store</h2>
          <span class="passo__linea" data-linea></span>
          <p class="passo__frase">Flat, wrapped in acid-free paper, in a box made to its length. The blade always faces the door.</p>
        </div>
      </article>
    </section>

    <footer class="chiusura">
      <p class="chiusura__titolo">Every oar keeps <em>its name.</em></p>
      <p class="chiusura__frase">The archive opens on Saturday mornings, by the river.</p>
    </footer>
  </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.

40 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 “Double curtain 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

The archive of an invented rowing club, Halden, founded in 1891, explains how it keeps an oar. It opens on an almost black blue with a blue glow: “How we keep an oar”, in a light serif, with “an oar” in italics. Scrolling down, the first card rises from below, as tall as the screen: at the top a running head with a thin rule, the name of the step in large type, Collect, a short blue rule and one sentence; at the bottom an ivory line drawing, an oar lying across with a blue blade and a tag tied to it. As the card rises the drawing inside slides down by the same amount, so it stays still and the card opens over it from below. The text comes last, dropping from above, and the blue rule draws itself. Then the next card, Clean (a cloth and the blade of the oar), covers the first and casts a shadow on its edge, while the text and drawing underneath fade to half; then Catalogue (a large handwritten tag, Oar, spruce, 1907, coxed four, Shelf C, and a pencil) and Store (an archive box with tissue paper and the label Oars, 1900 to 1930). Each time a card stops, its tag swings by a degree around the knot of its string and the drawing settles by a pixel. At the end, “Every oar keeps its name.”.

How it works

The sticky cards

Each step is an article stuck to the top, 100lvh tall, with hidden overflow and a negative margin of 2lvh, so the cards overlap slightly and the next one, later in the document, goes over. After the last card the section has some empty room, so the last card stays still for a moment.

The double curtain

Each card has a timeline with a ScrollTrigger from the top of the card at the bottom of the screen (top bottom) to the bottom of the card at the bottom of the screen (bottom bottom), with scrub. Inside, at the same time and with the same curve: the card from yPercent 100 to 0 and the drawing inside from yPercent -100 to 0. The card rises faster than the page, the drawing compensates and stays where it is. The first card uses sine.out, the others sine.inOut.

The text and the step before

The text starts at opacity 0 and yPercent -75 and arrives in 0.6 of the timeline after a 0.4 delay, with power2.out: it drops from above when the card has almost arrived. At the same time the text of the card before goes to opacity 0.5 (duration 0.5, delay 0.5) and its drawing a little less. The blue rule under the title grows from scaleX 0 to 1 near the end.

The shadow and the tag

The rising card has an upward box-shadow that reads a CSS variable, --ombra, taken from 0 to 1 by the timeline: the shadow grows on the edge of the card below as it covers it. When the progress reaches the end, onUpdate starts, just once, a tween outside the timeline: the tag of the drawing rotates from one degree to zero with elastic.out(1, 0.28) around the knot of its string (svgOrigin), and the drawing drops by a pixel and a half and comes back. Scrolling back below 90% re-arms it.

The smooth scroll

Lenis drives the scroll and is moved by GSAP’s ticker, with lagSmoothing(0) and ScrollTrigger.update on every scroll: the curtain follows the finger without jumps.

Values to change

NameFileDefaultWhat it changes
RISEscript.js100How far below its place a card starts, as a share of its height.
COUNTERscript.js100How far the drawing inside starts the other way (100 keeps it still).
TEXT_DROPscript.js75How far above its place the text drops from, as a share of its height.
DIMscript.js0.5How faded the step before gets when the next one arrives.
SHADOWscript.js1How dark the shadow of the rising card is (0 for none).
SWINGscript.js1How many degrees the tag swings when the card stops.
SMOOTHscript.js1.1Seconds of the smooth scroll; 0 for the browser’s own.

Try them in the Playground

When to use it

To explain a step-by-step process on a storytelling page: how something is kept, prepared or delivered. It suits a museum, an archive, a winery, a workshop or the “how it works” section of a service.

On phones

The same double curtain, with the same proportions: the text sits at the top in a single column and the drawing at the bottom, smaller, sized on both width and height.

With reduced motion

No rising cards or sliding drawings: the cards stack with the page, the text fades in and the one before fades to half; the tag stays still.

Pitfalls

  • GSAP’s transform on the card and the one on the drawing must sit on two different elements, and the text on a third: if the drawing were inside the text it would move twice.
  • With sticky cards the next card must come later in the document, otherwise it slides underneath: no z-index to compute.
  • The shadow of a rising card does not show if it is placed inside the card (overflow is hidden): it goes in the card’s own box-shadow, which overflow does not clip.
  • The tag must swing once when the card arrives, not on every scrub update: it needs a switch that re-arms only when scrolling back.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Fraunces (font variabile) 5.3.0, Inter (font variabile) 5.3.0.

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

Testing

Tested on 29 October 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