Skip to content
animorio
IT
Back to the library

Venetian blind transition

Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The website of a made-up architecture and interiors studio, Haldor Studio, with four pages in their own colours: Home ivory, Work midnight blue, Studio terracotta, Contact sage. On a click on a menu item a thin cord drops to the point of the click, then vertical slats in the colour of the next page turn shut like a venetian blind, the ones near the finger first, each with a small bounce past flat; across the shut slats the name of the new page reads, then the blind opens to the side and the new title rises out of its mask.

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>
<!--
  "Venetian blind transition" 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>The venetian blind page transition that closes from the click</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bricolage-grotesque@5.3.0/standard.css">
  <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>
  <main class="stage" data-stage>
    <!-- the four pages of a made-up architecture and interiors studio, Haldor, each in its own colour. A click on the menu
         drops a thin cord at the point of the click, then vertical slats in the colour of the next page turn shut like a
         venetian blind, the ones near the click first, each with a small overshoot; the name of the new page shows across
         the closed slats, and then the blind turns open again from one side to the other on the new page -->

    <header class="top">
      <a href="#" class="brand" data-go="home" aria-label="Haldor Studio, home">
        <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
          <rect x="3.2" y="3.2" width="17.6" height="17.6" rx="3.4"></rect>
          <path d="M8.1 6.4v11.2M12 6.4v11.2M15.9 6.4v11.2"></path>
        </svg>
        <span class="brand__name">Haldor<em>Studio</em></span>
      </a>
      <nav class="nav" data-nav aria-label="Main">
        <span class="nav__hover" data-hover aria-hidden="true"><i></i><i></i><i></i></span>
        <span class="nav__pill" data-pill aria-hidden="true"><span class="nav__shine"></span></span>
        <a href="#" class="nav__item is-here" data-go="home" aria-current="page"><span>Home</span></a>
        <a href="#" class="nav__item" data-go="work"><span>Work</span></a>
        <a href="#" class="nav__item" data-go="studio"><span>Studio</span></a>
        <a href="#" class="nav__item" data-go="contact"><span>Contact</span></a>
      </nav>
      <span class="where" data-where aria-hidden="true">Oslo<i></i>Lisbon</span>
    </header>

    <div class="pages">
      <section class="page page--home is-on" data-page="home" aria-label="Home">
        <div class="page__text">
          <p class="eyebrow" data-in>Architecture and interiors</p>
          <h1 class="title" data-title><span class="line"><span>Rooms that</span></span><span class="line"><span>hold the <i>light</i></span></span></h1>
          <p class="text" data-in>Houses, studios and quiet public rooms, drawn slowly between Oslo and Lisbon.</p>
        </div>
        <figure class="room" data-in aria-label="Fjordhus, on site in Bergen">
          <span class="room__wall"></span>
          <span class="room__window"><i></i><i></i><i></i><i></i><i></i></span>
          <span class="room__beam"></span>
          <span class="room__floor"></span>
          <figcaption class="room__tag"><b>Fjordhus</b><span>On site in Bergen</span></figcaption>
        </figure>
      </section>

      <section class="page page--work" data-page="work" aria-label="Work" hidden>
        <div class="page__text">
          <p class="eyebrow" data-in>Selected work</p>
          <h1 class="title" data-title><span class="line"><span>Built, and</span></span><span class="line"><span>lived <i>in</i></span></span></h1>
        </div>
        <ul class="list" data-in>
          <li class="row"><span class="thumb thumb--a"></span><b>Fjordhus</b><span>Bergen</span><em>Residential</em><span class="row__year">2025</span></li>
          <li class="row"><span class="thumb thumb--b"></span><b>Casa Alfama</b><span>Lisbon</span><em>Interiors</em><span class="row__year">2024</span></li>
          <li class="row"><span class="thumb thumb--c"></span><b>Linden Hall</b><span>Oslo</span><em>Cultural</em><span class="row__year">2023</span></li>
        </ul>
      </section>

      <section class="page page--studio" data-page="studio" aria-label="Studio" hidden>
        <div class="page__text">
          <p class="eyebrow" data-in>The studio</p>
          <h1 class="title" data-title><span class="line"><span>Twelve people,</span></span><span class="line"><span>two <i>cities</i></span></span></h1>
          <p class="text" data-in>We keep the team small on purpose: every project is drawn by the people who build it.</p>
        </div>
        <dl class="facts" data-in>
          <div><dt>Architects</dt><dd data-count="12">12</dd></div>
          <div><dt>Rooms built</dt><dd data-count="41">41</dd></div>
          <div><dt>Since</dt><dd>2011</dd></div>
        </dl>
      </section>

      <section class="page page--contact" data-page="contact" aria-label="Contact" hidden>
        <div class="page__text">
          <p class="eyebrow" data-in>Contact</p>
          <h1 class="title" data-title><span class="line"><span>Start a room</span></span><span class="line"><span>with <i>us</i></span></span></h1>
          <p class="text" data-in>Tell us about the site, the light and the people who will live there.</p>
        </div>
        <div class="reach" data-in>
          <a class="mail" href="#" data-mail><span>hello@haldor.example</span>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.6 4.4 12.2 8l-3.6 3.6"></path></svg>
          </a>
          <span class="reach__hours">Studio visits, Tuesday to Friday</span>
        </div>
      </section>
    </div>

    <!-- the blind: the slats are made by the script, each with its slice of the page name -->
    <div class="blind" data-blind aria-hidden="true"></div>
    <span class="cord" data-cord aria-hidden="true"><i></i></span>
    <div class="grain" aria-hidden="true"></div>
    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13 7.2-5.6 1.4-2.8 5.4z"></path></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </main>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

73 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 “Venetian blind transition” 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

On an ivory background with the light of a window from the top left corner, grain and the faint shadow of a venetian blind on the wall sits the Home page of Haldor Studio: at the top the mark, a square with three slats, in the middle the menu, a frosted glass pill with Home, Work, Studio and Contact, on the right ‘Oslo’ and ‘Lisbon’ split by a thin rule. At the bottom the terracotta eyebrow, the big title ‘Rooms that hold the light’ with the last word narrow and light, a line of text, and on the right a drawn room: a warm wall, a window with its blind half open, a striped beam of light on the wooden floor and a glass label ‘Fjordhus, On site in Bergen’. A drawn pointer presses Work: the pill runs to the item on a spring, a cord drops from the top to the point of the click, gives a tug and goes up again, and meanwhile vertical midnight blue slats turn shut starting from there, each with a small bounce past flat and a shade that changes side as it turns. Slice by slice the name ‘Work’ appears, every slice rising with its slat, and under it the line ‘Haldor Studio, Selected work’. Then the blind opens to the side, one slat after the other turning on its edge, and underneath the new page is already there: ‘Built, and lived in’ rises out of its mask and three projects, Fjordhus, Casa Alfama and Linden Hall, come in with their tiles. Then Studio in terracotta, with the numbers rolling (12 architects, 41 rooms built, since 2011), then Contact in sage with the email pill, then Home again. On hover over the menu items a faint pill takes the colour of the page it leads to and three thin slats turn inside it; the room lifts and its blind opens, the project rows slide, the email pill widens.

How it works

Slats built on the click

On every page change the script measures the window and makes up to 14 vertical slats, never narrower than 30 pixels (11 on a phone), each one pixel wider so no light ever passes between them. Every slat has the background of the next page and its own slice of the name: a block as wide as the screen moved back by the slat's position, so the slices together read as one word.

The slats near the click go first

Every slat starts at rotateY 90 degrees, edge on and invisible, and turns to 0 in 0.62 s on back.out(2.2): it goes a few degrees past and comes back, the small overshoot of a real blind. Its delay is its distance from the point of the click over the longest distance, times 0.42 s: the slats under the finger shut first and the wave runs to both sides.

The shade that follows the angle

Every slat is drawn from its own state on every frame: the turn with its 700 pixel perspective, a dark veil whose opacity is the sine of the angle (turned it is in shadow, flat it is in light) and changes side when the angle goes below zero, and the slice of the name rising from 26 % along with it. A fixed gradient makes it look curved, light in the middle like lacquered wood.

The change under the shut blind

Once the last slat has shut, the new page goes underneath and the --bg, --ink and --acc variables change; for 0.6 s the name reads with the ‘Haldor Studio’ line and the page's eyebrow. Then the blind opens to the side, from the edge nearer the click to the other: every slat turns on one of its edges with power3.in, 0.38 s between the first and the last, and the new title rises out of its mask while the last one leaves.

The cord and the details

Before the slats a thin cord drops to the point of the click with a wooden pull, gives a seven pixel tug and goes up again. The menu pill runs to the new item on a spring with a highlight; on hover the faint pill takes the colour of the page it leads to and three thin slats turn inside it. On the wall the shadow of a blind drifts slowly with the pointer.

Values to change

NameFileDefaultWhat it changes
SLATSscript.js14How many slats on a computer (fewer on a phone).
MIN_SLATscript.js30The smallest width of a slat, in pixels.
CLOSE_TIMEscript.js0.62The seconds each slat takes to shut.
CLOSE_SPREADscript.js0.42The seconds between the slat under the click and the farthest one.
OVERSHOOTscript.js2.2How far each slat goes past and back as it shuts (0 no bounce).
HOLDscript.js0.6The seconds the blind stays shut, with the name of the new page.
OPEN_TIMEscript.js0.66The seconds each slat takes to open again.
OPEN_SPREADscript.js0.38The seconds between the first and the last slat opening.
DEPTHscript.js700The perspective of the turning slats (lower is deeper).
NAME_RISEscript.js26How far below each slat's slice of the name starts, in percent.
CORDscript.js1The cord that drops to the point of the click (1 on, 0 off).

Try them in the Playground

When to use it

For the website of an architecture or design studio, an agency, a hotel or a brand with a few pages, each in its own colour: when the page change should feel like a physical gesture, a blind that shuts and opens again, starting from the point that was touched.

On phones

The same transition with adapted sizes: at most one slat every 30 pixels (11 on a phone), the brand name and the cities hide, the room moves to the top right and the title is sized on width and height; in the short preview box title, rows and numbers stay. The slats start from the point touched with the finger.

With reduced motion

No turning slats and no cord: the shut blind with the name fades in, the page changes underneath and the blind fades out; the content fades in without moving and the pill jumps to its place.

Pitfalls

  • The slats must be one pixel wider than their share, otherwise rounding leaves a line of the page below between them.
  • With back.out the slat goes below zero degrees: the shade must change side with the sign of the angle, or the slat lights up on the wrong side.
  • The turning point moves to the edge only on opening, when the angle is zero: changing it mid-turn would make the slat jump.
  • The new page must be hidden (title and pieces at zero opacity) at the moment of the change, or it shows whole between the slats before coming in.
  • The name inside each slat is as wide as the screen and moved by the slat's position: on resize both must be worked out again, even halfway through.

Libraries

GSAP 3.15.0, Bricolage Grotesque (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.

Testing

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