
The graph paper background
Backgrounds, Scroll
Scroll inside the preview
The home page of Lantern Decks, a made-up presentation studio in Lisbon, in four chapters: warm white, indigo, near black and warm white again. Behind the page a canvas paints one colour per chapter; as the next chapter comes up, its colour rises from the bottom of the screen with a curved edge, high at the sides and low in the middle, that straightens out as it reaches the top. A slow light wave drifts inside every colour, a light line follows the edge, the header changes ink exactly when the curve passes under it and the chapter name in the corner rolls. Minimal style, one accent. Inspired by the La boite à slides site.
Rebuilt from scratch studying laboiteaslides.fr by Sparkk, Evan Fasquelle: 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>
<!--
"Curved background" 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>Lantern Decks, the colour that rises on a curve</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>
<!-- the home page of Lantern Decks, a made-up presentation studio in Lisbon, in four chapters. Behind the page a
canvas holds one colour per chapter: as the next chapter comes up, its colour rises from the bottom of the
screen with a curved edge, high at the sides and low in the middle, that flattens out as it reaches the top.
Inside each colour a slow light wave drifts. The header changes ink exactly when the curve passes under it -->
<canvas class="fondo" data-fondo aria-hidden="true"></canvas>
<header class="testa" data-testa>
<p class="testa__marca">
<svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.5" y="4.5" width="15" height="10" rx="1.6" /><path d="M10 14.5v2.6M6.6 17.1h6.8" /><path d="M5.6 11.4l2.6-2.6 2 1.7 3.6-3.6" /></svg>
Lantern Decks
</p>
<p class="testa__capitolo" aria-live="polite"><span class="testa__rullo" data-rullo><span>Studio</span><span>Pitch</span><span>Keynote</span><span>Contact</span></span></p>
</header>
<main>
<section class="capitolo" data-capitolo data-colore="carta" data-nome="Studio">
<div class="capitolo__dentro" data-dentro>
<p class="occhiello" data-entra>Presentation studio, Lisbon</p>
<h1 class="titolo" data-titolo>We make decks people remember.</h1>
<p class="nota" data-entra>Pitch decks, keynotes and investor updates, written and designed in one room.</p>
<p class="invito" data-entra aria-hidden="true"><span>Scroll</span><svg viewBox="0 0 12 16"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg></p>
</div>
</section>
<section class="capitolo" data-capitolo data-colore="indaco" data-nome="Pitch">
<div class="capitolo__dentro" data-dentro>
<p class="occhiello" data-entra>Pitch decks</p>
<h2 class="titolo" data-titolo>Twelve slides that raise a round.</h2>
<p class="nota" data-entra>From the first seed meeting to the board that signs the term sheet.</p>
</div>
</section>
<section class="capitolo" data-capitolo data-colore="notte" data-nome="Keynote">
<div class="capitolo__dentro" data-dentro>
<p class="occhiello" data-entra>Keynotes</p>
<h2 class="titolo" data-titolo>Built for rooms of three thousand.</h2>
<p class="nota" data-entra>Big type, one idea per slide, and a rehearsal before every stage.</p>
</div>
</section>
<section class="capitolo" data-capitolo data-colore="carta" data-nome="Contact">
<div class="capitolo__dentro" data-dentro>
<p class="occhiello" data-entra>Your next deck</p>
<h2 class="titolo" data-titolo>Tell us about the room.</h2>
<p class="azione" data-entra><a class="pillola" href="#" data-pillola><span class="pillola__fondo" data-pillola-fondo></span><span class="pillola__testo">Start a deck</span><svg class="pillola__freccia" viewBox="0 0 14 14" aria-hidden="true"><path d="M2 7h9.5M7.5 3 11.5 7l-4 4" /></svg></a></p>
</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/gsap@3.15.0/dist/CustomEase.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>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
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Curved background” from Animorio and fit it into my siteA fixed canvas behind the page. For every chapter after the first a ScrollTrigger runs from «top bottom» to «top top» and writes its progress t, 0 to 1, with no easing: the scroll, smoothed by Lenis, decides everything. Every frame the colours are painted one over the other.
The height of the new colour, counted from the bottom, is the base plus nx² times the curve: the base goes from −CURVE to 1 and the curve from CURVE to 0 as t goes from 0 to 1 (on the site a shader with the curve going from 0.3 to 0). So the sides start at the bottom and the middle a third below, and the edge reaches the top straight. The path is a polyline with a point every 12 pixels.
Inside every colour, clipped by its edge, two soft diagonal bands one shade lighter drift on two sines: one with time at WAVE_SPEED, the other with the scroll raised to 1.2, like the site’s gradient.
For the mark and for the label on the right the script finds which colour covers their centre, working out the edge at exactly that point: since the curve is higher at the sides, they change ink a moment before the middle, each at its own time. The chapter name rolls on the site’s curve.
Every word has its own mask and rises from 130% to 0 in WORD_IN seconds, one every STAGGER, while the wdth axis of Mona Sans goes from 125 to 100; the curve is the site’s custom::out, with a 1% overshoot, rebuilt with CustomEase from its points.
| Name | File | Default | What it changes |
|---|---|---|---|
CURVE | script.js | 0.3 | How deep the curved edge is when a colour starts rising, in screen heights. |
WAVE_SPEED | script.js | 0.06 | The speed of the light wave inside each colour. |
WAVE_LIGHT | script.js | 0.5 | How visible the light wave is, from 0 to 1. |
EDGE_LINE | script.js | 1 | The thickness in pixels of the light line along the edge (0 hides it). |
WORD_IN | script.js | 1.7 | How many seconds each word of a title takes to rise. |
STAGGER | script.js | 0.05 | The seconds between one word and the next. |
LERP | script.js | 0.1 | The Lenis scroll smoothing: lower is softer. |
DRIFT | script.js | 0.12 | How far a chapter lags behind as it leaves the screen, in screen heights, fading as it goes. |
For the home page of a studio, an agency or a product split into chapters, when every part has its own colour and the change should be felt; also for a long landing page where the background tells you where you are.
Every chapter is as tall as the screen, the canvas is fixed and redraws at the real width, the titles sit between 30 pixels and the smaller of 9.2vw and 10.4vh. The curve is measured in screen heights, so on a narrow phone it is steeper but the same. Scrolling with a finger does everything.
No canvas, no curve and no smooth scroll: every chapter has its own solid colour, the text fades in as it arrives and the header changes ink and name as you pass from one chapter to the next.
GSAP 3.15.0, ScrollTrigger 3.15.0, CustomEase 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.1 KB; the libraries: GSAP + ScrollTrigger + CustomEase 49 KB, Lenis 5.3 KB.
Tested on 2 December 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.
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.