Skip to content
animorio
IT
Back to the library

Stepped yellow curtain

Transitions, SVGGSAP, CSS onlyAdvancedCompressed weight: Demo 14 KBGSAP + CustomEase 31 KBFreeDownload the zip

A premium page transition on the site of Ignite Fund, a fund that backs climate technology: a click on a portfolio card, each with a real photo of its material, or on a menu item draws a yellow curtain with soft edges across the page, made of a 13 step fade three quarters of the screen wide, a full block and another fade. In the middle our mark of rounded rings grows ring after ring, always turning, and the name of the page fades in; under the curtain the page changes, then the curtain moves on and uncovers it while the rings shrink. Towards a company's page the curtain is near black and falls from the top.

Rebuilt from scratch studying breakthroughenergy.org by Resn: 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>
<!--
  "Stepped yellow curtain" 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">
  <meta name="theme-color" content="#f4f2ec">
  <title>The page transition with the stepped yellow curtain</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.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>
  <!-- Ignite Fund, a climate tech fund: three real pages of its site (the portfolio, one company, the impact report).
       A click on a card or on a menu item draws a curtain across the page: a soft edge made of a 13 step fade, 75% of
       the screen wide, a full block as wide as the screen and the same fade behind. In the middle our ring mark grows
       ring after ring and the name of the next page fades in; the page changes under the curtain and the curtain goes
       on, uncovering it. Towards a company page the curtain is near black and falls from the top. -->
  <div class="site" data-site data-page="portfolio">
    <header class="nav" data-nav>
      <a class="brand" href="#portfolio" data-go="portfolio" aria-label="Ignite Fund, portfolio">
        <svg class="brand__mark" viewBox="-60 -60 120 120" aria-hidden="true"><path data-ring-static="0"/><path data-ring-static="45"/></svg>
        <span class="brand__name">Ignite Fund</span>
      </a>
      <nav class="links" aria-label="Main">
        <span class="links__pill" data-pill aria-hidden="true"></span>
        <a class="links__item" href="#portfolio" data-go="portfolio" data-link="portfolio">Portfolio</a>
        <a class="links__item" href="#impact" data-go="impact" data-link="impact">Impact</a>
        <span class="links__item links__item--muted">Founders</span>
      </nav>
    </header>

    <main class="pages">
      <!-- the portfolio: four company cards, each with a real photo of its material -->
      <section class="page page--portfolio is-on" data-view="portfolio" aria-label="Portfolio">
        <div class="pf__head">
          <p class="eyebrow" data-in>Portfolio <span class="eyebrow__soft">48 companies</span></p>
          <h1 class="pf__title" data-in>Backing the builders of a cleaner grid.</h1>
        </div>
        <ul class="grid">
          <li class="card" data-in>
            <a class="card__link" href="#company" data-go="company" data-card="halcyon">
              <span class="card__photo card__photo--cells" aria-hidden="true"><span class="card__shine"></span></span>
              <span class="card__meta">
                <span class="card__name">Halcyon Storage</span>
                <span class="card__row"><span class="card__tag">Energy storage</span><span class="card__fig">4.2 GWh</span></span>
              </span>
              <span class="card__go" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M4.5 11.5l7-7M5.6 4.5h5.9v5.9"/></svg></span>
            </a>
          </li>
          <li class="card" data-in>
            <a class="card__link" href="#company" data-go="company" data-card="verdant">
              <span class="card__photo card__photo--water" aria-hidden="true"><span class="card__shine"></span></span>
              <span class="card__meta">
                <span class="card__name">Verdant Hydrogen</span>
                <span class="card__row"><span class="card__tag">Green hydrogen</span><span class="card__fig">310 MW</span></span>
              </span>
              <span class="card__go" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M4.5 11.5l7-7M5.6 4.5h5.9v5.9"/></svg></span>
            </a>
          </li>
          <li class="card" data-in>
            <a class="card__link" href="#company" data-go="company" data-card="calcine">
              <span class="card__photo card__photo--stone" aria-hidden="true"><span class="card__shine"></span></span>
              <span class="card__meta">
                <span class="card__name">Calcine Labs</span>
                <span class="card__row"><span class="card__tag">Low carbon cement</span><span class="card__fig">-61%</span></span>
              </span>
              <span class="card__go" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M4.5 11.5l7-7M5.6 4.5h5.9v5.9"/></svg></span>
            </a>
          </li>
          <li class="card" data-in>
            <a class="card__link" href="#company" data-go="company" data-card="deepwell">
              <span class="card__photo card__photo--strata" aria-hidden="true"><span class="card__shine"></span></span>
              <span class="card__meta">
                <span class="card__name">Deepwell Thermal</span>
                <span class="card__row"><span class="card__tag">Geothermal</span><span class="card__fig">5.8 km</span></span>
              </span>
              <span class="card__go" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M4.5 11.5l7-7M5.6 4.5h5.9v5.9"/></svg></span>
            </a>
          </li>
        </ul>
      </section>

      <!-- one company of the portfolio: a dark page, the figure that climbs and its line -->
      <section class="page page--company" data-view="company" aria-label="Halcyon Storage" hidden>
        <div class="co">
          <div class="co__intro">
            <a class="back" href="#portfolio" data-go="portfolio" data-in>
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M12.5 8h-9M7.2 4.2L3.4 8l3.8 3.8"/></svg>
              <span>All companies</span>
            </a>
            <p class="eyebrow eyebrow--dark" data-in>Energy storage <span class="eyebrow__soft">Series B, 2024</span></p>
            <span class="co__photo card__photo card__photo--cells" data-photo data-in aria-hidden="true"><span class="card__shine"></span></span>
            <h1 class="co__name" data-in>Halcyon Storage</h1>
            <p class="co__line" data-in>Iron-air batteries that keep a wind farm's power for a hundred hours.</p>
          </div>
          <article class="panel" data-in>
            <header class="panel__head">
              <span class="panel__label">Storage deployed</span>
              <span class="panel__chip">Live</span>
            </header>
            <p class="panel__big"><span data-count="4.2" data-dec="1">0.0</span><span class="panel__unit">GWh</span></p>
            <p class="panel__delta"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M6 9.5V2.8M2.9 5.6L6 2.5l3.1 3.1"/></svg>+38% this year</p>
            <svg class="chart" viewBox="0 0 300 110" preserveAspectRatio="none" aria-hidden="true">
              <defs>
                <linearGradient id="area" x1="0" y1="0" x2="0" y2="1">
                  <stop offset="0" stop-color="var(--accent)" stop-opacity=".34"/>
                  <stop offset="1" stop-color="var(--accent)" stop-opacity="0"/>
                </linearGradient>
                <clipPath id="reveal"><rect data-reveal x="-10" y="-20" width="0" height="150"/></clipPath>
              </defs>
              <path class="chart__grid" d="M0 27.5H300M0 55H300M0 82.5H300"/>
              <path class="chart__area" data-area d="M0 104 C40 102 62 98 90 92 S140 80 170 66 S226 40 252 28 S286 12 300 8 V110 H0 Z" fill="url(#area)" clip-path="url(#reveal)"/>
              <path class="chart__line" data-line clip-path="url(#reveal)" d="M0 104 C40 102 62 98 90 92 S140 80 170 66 S226 40 252 28 S286 12 300 8"/>
              <circle class="chart__end" data-end cx="300" cy="8" r="3.4"/>
            </svg>
            <div class="panel__years" aria-hidden="true"><span>2021</span><span>2023</span><span>2026</span></div>
            <dl class="stats">
              <div><dt>Discharge</dt><dd><span data-count="100">0</span> h</dd></div>
              <div><dt>Sites</dt><dd><span data-count="27">0</span></dd></div>
              <div><dt>Cost</dt><dd>$<span data-count="21">0</span>/kWh</dd></div>
            </dl>
          </article>
        </div>
      </section>

      <!-- the impact report: the tonnes avoided and the share of each sector -->
      <section class="page page--impact" data-view="impact" aria-label="Impact" hidden>
        <div class="im">
          <div class="im__left">
            <p class="eyebrow" data-in>Impact report <span class="eyebrow__soft">2026</span></p>
            <p class="im__big" data-in><span data-count="18.6" data-dec="1">0.0</span><span class="im__unit">Mt</span></p>
            <p class="im__line" data-in>of CO<sub>2</sub>e kept out of the air each year by the companies we back.</p>
          </div>
          <ul class="bars" data-in>
            <li class="bar"><span class="bar__name">Energy storage</span><span class="bar__track"><span class="bar__fill bar__fill--lead" data-bar="31"></span></span><span class="bar__val"><span data-count="31">0</span>%</span></li>
            <li class="bar"><span class="bar__name">Green hydrogen</span><span class="bar__track"><span class="bar__fill" data-bar="22"></span></span><span class="bar__val"><span data-count="22">0</span>%</span></li>
            <li class="bar"><span class="bar__name">Low carbon cement</span><span class="bar__track"><span class="bar__fill" data-bar="19"></span></span><span class="bar__val"><span data-count="19">0</span>%</span></li>
            <li class="bar"><span class="bar__name">Geothermal</span><span class="bar__track"><span class="bar__fill" data-bar="16"></span></span><span class="bar__val"><span data-count="16">0</span>%</span></li>
            <li class="bar"><span class="bar__name">Carbon removal</span><span class="bar__track"><span class="bar__fill" data-bar="12"></span></span><span class="bar__val"><span data-count="12">0</span>%</span></li>
          </ul>
        </div>
      </section>
    </main>

    <!-- the curtain: one row for the yellow one (fade, block, fade), one column for the dark one, the mark on top -->
    <div class="veil" data-veil aria-hidden="true">
      <div class="veil__row" data-row><span class="fade fade--l"></span><span class="veil__block"></span><span class="fade fade--r"></span></div>
      <div class="veil__col" data-col><span class="fade fade--t"></span><span class="veil__block"></span><span class="fade fade--b"></span></div>
      <div class="veil__mark">
        <svg class="rings" viewBox="-60 -60 120 120">
          <path class="ring ring--full" data-ring="0"/>
          <path class="ring ring--full ring--soft" data-ring="45"/>
          <path class="ring ring--cut" data-ring="0" pathLength="100"/>
          <path class="ring ring--cut ring--soft" data-ring="45" pathLength="100"/>
        </svg>
        <p class="veil__title" data-title>Portfolio</p>
      </div>
    </div>

    <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.6 8.1-6.1 1.2-3.3 5.6z"/></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </div>

  <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/CustomEase.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.

84 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 “Stepped yellow curtain” 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 site of Ignite Fund, a fund that backs climate technology, on a cream page with a yellow light in one corner and a veil of grain. At the top the mark, two rounded rings, and the pill menu with Portfolio, Impact and Founders: the active item sits on a white lozenge with a one pixel edge. The Portfolio page has its mono caps label, the title ‘Backing the builders of a cleaner grid.’ and four cards of invented companies, each with a real photo of its material (battery cells seen from above, bubbles rising in water for hydrogen, raw concrete, the layered walls of a canyon for geothermal), the name, the sector and a mono figure, an edge that catches the light at the top and a soft shadow. A drawn pointer arrives and rests on Halcyon Storage: the card lifts in its shadow, the photo grows a touch, a sheen crosses it and the round arrow turns yellow and swings. The click makes it give and come back on a spring: from the top a near black curtain with a soft edge falls, covers the page, and in the middle two pairs of yellow rings grow one after the other, turning, while ‘Halcyon Storage’ fades in. Under the curtain the page changes; the curtain goes on down and uncovers the company's dark page while the rings shrink: the photo of the cells, the big name, and the dark glass panel where 4.2 GWh climbs from zero, the yellow line draws itself with its glow and the area under it lights up, the three small figures count. The pointer goes to Impact: the menu lozenge slides on a spring and the yellow curtain comes in from the right, faded in 13 steps over three quarters of the screen, with ‘Impact’ in the middle over the black rings; then it leaves to the left and uncovers the report: 18.6 Mt climbing and five bars growing, the first one yellow. The pointer goes back to Portfolio, another yellow curtain, and the walk starts again.

How it works

The curtain is a single row

Three pieces in a row with display: flex: a fade FADE per cent of the screen wide, a block as wide as the screen and another fade. Sizes are in pixels, worked out again on every resize, and render() writes the position every frame from a number between 0 and 1: on the way in from +W to −0.75·W (covered), on the way out from −0.75·W to −(2·0.75·W + W), until the whole row has gone by.

The 13 step fade

The edge is not a straight gradient: it is the same colour with thirteen transparencies that fall fast and then slowly (1, .737 at 19%, .541 at 34%, .38 at 47%, .278, .192, .125, .075, .043, .02, .008, .004, 0), like a light going out. The colour lives in :root as three numbers, so rgb(var(--c) / .38) works the same for the yellow curtain and the black one.

The real timings

On the way in the curtain moves for half of LEAVE (1 s out of 2) in power2.inOut; from a third of LEAVE the name appears in half a second and the rings grow in 1.32 s with the CustomEase M0,0 C0.16,0.74 0.3,1 1,1, 0.2 s apart. At 0.74 of LEAVE the full rings give way to the cut ones. On the way out the name goes in ENTER_DELAY, the rings go back to 0.01 with M0,0 C0.66,0 0.7,0.33 1,1 and the curtain leaves after 0.4 − 0.4/3 s for 1.2 − 0.4 = 0.8 s.

The rings

Four SVG paths generated from a superellipse (exponent 3.4): two full and two cut into four strokes with stroke-dasharray on pathLength 100, the second of each pair turned 45 degrees and at .62 opacity. They always turn 360 degrees in SPIN seconds around svgOrigin 0 0, but the spin pauses while the curtain rests.

The black curtain from the top

Towards a company page the same timeline uses a column: a fade 0.75·H tall, a block H tall, a fade; on the way in from −(2·0.75·H + H) to −0.75·H, on the way out down to +H. The browser bar colour (meta theme-color) follows the curtain and then the page.

The card photos

Every card has a real CC0 photo as webp in the demo's folder (battery-cells, water-bubbles, concrete, rock-strata), set as a background with cover and a fallback colour close to the photo. The ::before pseudo element takes it with background: inherit and is 6% larger than the frame on every side: on hover it grows to 1.06 without showing its edges, and the sheen crosses on top. The company page reuses the same class, so it shows the photo of the company that was clicked.

Values to change

NameFileDefaultWhat it changes
LEAVEscript.js2Seconds of the way in: the curtain covers in half of it, the rings grow in 0.66 of it.
ENTER_TOTALscript.js1.2Seconds of the way out, delay included.
ENTER_DELAYscript.js0.4The part of the way out spent shrinking the rings before the curtain moves on.
FADEscript.js75How wide the soft edge is, in per cent of the screen.
SPINscript.js7Seconds for one turn of the rings.
RING_STAGGERscript.js0.2Seconds between one ring and the next.
RISEscript.js18How far from below the new page's contents rise, in pixels.
DARK_FOR_COMPANYscript.jstrueTowards a company page the curtain is dark and falls from the top.
HOLDscript.js2.4Seconds each page stays in the walk on its own.
IDLEscript.js6Seconds without touching before the drawn pointer comes back.
AUTOscript.jstrueThe drawn pointer walks the site by itself.

Try them in the Playground

When to use it

For the page change of a corporate site, a fund, a studio or a portfolio with a few important pages: when every move should be a moment of the brand, with the page's name arriving in the middle, and a second colour for the detail pages.

On phones

The same transition with adapted sizes: the fade is always three quarters of the screen, the rings and the name are sized on the height too, the cards are two per row and the company page puts the panel under the name. A tap on a card or on the menu starts the curtain.

With reduced motion

No curtain and no turning rings: the page change is a cross fade (the old page goes in 0.35 s, the new one comes in 0.45 s), the figures, bars and line are already in place and the drawn pointer does not appear; the walk on its own changes page with the same fades.

Pitfalls

  • Moving the curtain in vw with GSAP leaves it wrong if the window changes halfway: the tween only animates a number between 0 and 1 and render() works out the pixels with the sizes of that moment.
  • A light hair of half a pixel can stay between the fades and the block: the fades have a −1px margin and overlap the block.
  • The rings turn and scale together: with a percentage transformOrigin GSAP measures each path's box and the four may turn around points a few tenths apart; svgOrigin 0 0 keeps them all on the viewBox centre, even at scale 0.01.
  • An endless spin always on keeps GSAP busy even with the curtain at rest: it is paused while the curtain rests.
  • The real click and the drawn pointer call the same function: while the curtain runs every other click is ignored, otherwise two timelines fight over the same curtain.
  • The battery photo had the maker's name printed on the side of two cells: the file is cropped to the top, with only the terminals, so no real name gets into the card even when it grows.

Libraries

GSAP 3.15.0, CustomEase (GSAP) 3.15.0, Geist (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 14 KB; the libraries: GSAP + CustomEase 31 KB.

Testing

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