
Logo loader
Transitions, SVG, Text
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
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>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
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 siteThree 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 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.
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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
LEAVE | script.js | 2 | Seconds of the way in: the curtain covers in half of it, the rings grow in 0.66 of it. |
ENTER_TOTAL | script.js | 1.2 | Seconds of the way out, delay included. |
ENTER_DELAY | script.js | 0.4 | The part of the way out spent shrinking the rings before the curtain moves on. |
FADE | script.js | 75 | How wide the soft edge is, in per cent of the screen. |
SPIN | script.js | 7 | Seconds for one turn of the rings. |
RING_STAGGER | script.js | 0.2 | Seconds between one ring and the next. |
RISE | script.js | 18 | How far from below the new page's contents rise, in pixels. |
DARK_FOR_COMPANY | script.js | true | Towards a company page the curtain is dark and falls from the top. |
HOLD | script.js | 2.4 | Seconds each page stays in the walk on its own. |
IDLE | script.js | 6 | Seconds without touching before the drawn pointer comes back. |
AUTO | script.js | true | The drawn pointer walks the site by itself. |
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.
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.
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.
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.
Tested on 7 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.