
Keep scrolling
Transitions, Scroll
Scroll inside the preview
The light of a window with blinds falls over the whole page: as you scroll it turns and lengthens like an afternoon sun, and at the bottom the page turns to evening while the stripes of light stay on the dark.
Rebuilt from scratch studying marimba.design by Myranda Wicks: 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>
<!--
"Light through the blinds" 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="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>La luce delle persiane</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- la luce della finestra: sta sopra a tutto, non riceve i clic -->
<div class="luce" data-luce aria-hidden="true"><div class="luce__finestra" data-finestra></div></div>
<main class="pagina">
<p class="nota" data-nota>Scorri: la luce della finestra attraversa la pagina come il sole di un pomeriggio, e in fondo viene sera.</p>
<section class="apertura">
<h1 class="apertura__titolo">Arrediamo stanze che cambiano con la luce.</h1>
<p class="apertura__testo">Guardiamo da che parte entra il sole prima di scegliere un colore, un tessuto, il posto di una poltrona.</p>
</section>
<section class="case">
<h2 class="case__titolo">Tre case</h2>
<div class="case__elenco">
<article class="casa">
<svg class="casa__disegno" viewBox="0 0 240 180" aria-hidden="true" focusable="false"><rect width="240" height="180" fill="#E7DCCB"/><rect y="132" width="240" height="48" fill="#B99672"/><path d="M0 132H240" stroke="#9C7B58" stroke-width="3"/><rect x="120" y="26" width="86" height="78" fill="#A9CFE0"/><path d="M120 76Q163 70 206 78V104H120Z" fill="#6E9FB8"/><path d="M120 26H206V104H120Z M163 26V104" fill="none" stroke="#F4EFE6" stroke-width="5"/><rect x="26" y="96" width="70" height="30" rx="8" fill="#6F7F4F"/><rect x="30" y="76" width="62" height="28" rx="10" fill="#7F9160"/><rect x="30" y="126" width="6" height="10" fill="#4E3B2A"/><rect x="86" y="126" width="6" height="10" fill="#4E3B2A"/></svg>
<h3 class="casa__nome">Casa sul lago</h3>
<p class="casa__testo">Una sala che guarda a ovest, sull’acqua.</p>
</article>
<article class="casa">
<svg class="casa__disegno" viewBox="0 0 240 180" aria-hidden="true" focusable="false"><rect width="240" height="180" fill="#EDE4D6"/><path d="M0 0H130L0 90Z" fill="#D6C7B2"/><rect y="134" width="240" height="46" fill="#A98A6A"/><path d="M146 18L214 18L214 64L146 64Z" fill="#B9D7E6"/><path d="M146 18H214V64H146Z M180 18V64" fill="none" stroke="#F4EFE6" stroke-width="4"/><path d="M150 52L160 40L170 50L184 36L200 52L210 44V64H150Z" fill="#8E9DAE"/><rect x="60" y="112" width="130" height="26" rx="6" fill="#E9E3D8"/><rect x="60" y="104" width="40" height="14" rx="6" fill="#FFFFFF"/><rect x="100" y="106" width="90" height="10" rx="4" fill="#C9553D"/><rect x="60" y="138" width="6" height="8" fill="#6A4E36"/><rect x="184" y="138" width="6" height="8" fill="#6A4E36"/></svg>
<h3 class="casa__nome">Mansarda in città</h3>
<p class="casa__testo">Un letto sotto il lucernario, e i tetti.</p>
</article>
<article class="casa">
<svg class="casa__disegno" viewBox="0 0 240 180" aria-hidden="true" focusable="false"><rect width="240" height="180" fill="#E9DFCF"/><rect y="138" width="240" height="42" fill="#9E7B58"/><path d="M20 40H120M20 76H120M20 112H120" stroke="#8E6A48" stroke-width="5"/><rect x="26" y="24" width="12" height="16" rx="3" fill="#D9A441"/><rect x="45" y="24" width="12" height="16" rx="3" fill="#C9553D"/><rect x="64" y="24" width="12" height="16" rx="3" fill="#6F9A5E"/><rect x="83" y="24" width="12" height="16" rx="3" fill="#E8C27A"/><rect x="102" y="24" width="12" height="16" rx="3" fill="#8E6A48"/><rect x="26" y="60" width="12" height="16" rx="3" fill="#D9A441"/><rect x="45" y="60" width="12" height="16" rx="3" fill="#C9553D"/><rect x="64" y="60" width="12" height="16" rx="3" fill="#6F9A5E"/><rect x="83" y="60" width="12" height="16" rx="3" fill="#E8C27A"/><rect x="102" y="60" width="12" height="16" rx="3" fill="#8E6A48"/><rect x="26" y="96" width="12" height="16" rx="3" fill="#D9A441"/><rect x="45" y="96" width="12" height="16" rx="3" fill="#C9553D"/><rect x="64" y="96" width="12" height="16" rx="3" fill="#6F9A5E"/><rect x="83" y="96" width="12" height="16" rx="3" fill="#E8C27A"/><rect x="102" y="96" width="12" height="16" rx="3" fill="#8E6A48"/><rect x="138" y="96" width="84" height="42" fill="#7A5A3E"/><rect x="134" y="92" width="92" height="8" fill="#5E432D"/><rect x="160" y="30" width="46" height="62" fill="#B9D7E6"/><path d="M160 30H206V92H160Z M183 30V92" fill="none" stroke="#F4EFE6" stroke-width="4"/></svg>
<h3 class="casa__nome">Bottega in paese</h3>
<p class="casa__testo">Scaffali di vasi, un banco, la porta sulla piazza.</p>
</article>
</div>
</section>
<section class="frase">
<p class="frase__testo">Alle cinque del pomeriggio la luce entra di taglio e disegna righe sul pavimento. Noi partiamo da lì.</p>
</section>
<section class="contatti" data-contatti>
<h2 class="contatti__titolo">Scrivici prima che faccia buio.</h2>
<a class="bottone" href="#">Scrivici</a>
</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="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.
29 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 “Light through the blinds” from Animorio and fit it into my siteThe light is a single fixed div over the page, with pointer-events: none. Its background has two layers: a vertical repeating-linear-gradient, 26 pixels of light and 18 of shadow, for the slats, and a horizontal linear-gradient with a dark band in the middle for the mullion. A 6-pixel blur and two intersected masks, fading the four edges, make it look projected.
The stripes do not use mix-blend-mode, which is unreliable on a fixed element in Safari: the light is a cream at 24% opacity and the shadow a brown at 11%. On paper you see the shadows, on the dark you see the lights: the same layer works by day and by night.
A single tween, tied to scrolling from the top to the bottom of the page (start 0, end max, scrub 0.8), takes the window from rotation −26°, skewX −8° to −46°, −22°, scaleY 1.45 and xPercent 34. Only transforms are animated: the blurred layer stays as it is and the browser moves it rather than redrawing it. A second, always-running tween makes it breathe by a few pixels.
The page and stripe colours are CSS variables on the root. As the contacts rise from 80% to 25% of the screen, GSAP animates the five variables towards evening: background, text, muted text, light and shadow. No element is touched one by one.
| Name | File | Default | What it changes |
|---|---|---|---|
POMERIGGIO, TRAMONTO | script.js | −26° → −46° | How the projected window sits at the top and bottom of the page: rotation, lean, stretch, shift. |
SCIVOLA_TELEFONO | script.js | 10 | How far the window slides right on a phone, as a percentage of its width. |
SERA | script.js | #17211B, #EFE9DC | The evening colours: background, text, muted text, light and shadow. |
repeating-linear-gradient | style.css | 26px e 18px | The blind slats: light and shadow. Wider stripes, more open blinds. |
For the pages of people who work with light and space: architects, interior designers, holiday homes, photographers. It adds atmosphere without touching the content.
The projected window is larger and centred, to cover a tall screen, and slides less to the right; the houses stack.
The light stays still as it is at the top of the page, with no turning or breathing; evening still comes, because only the colour changes.
GSAP 3.15.0, Instrument Serif 5.3.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 4.4 KB; the libraries: GSAP + ScrollTrigger 45 KB.
Tested on 27 September 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.