
Keep scrolling
Transitions, Scroll
NewLifetime
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.
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.
The code for this animation is part of lifetime access.
The preview stays open: watch it, slow it down, try it on your phone.
Lifetime accessThe 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.
Weight: 12 KB of our own files.
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.
With your account’s email and password.
You’re signed in as .
Your plan is free. When lifetime access arrives, it will switch on for this same account.