Skip to content
animorio
IT
Back to the library

Shutter project archive

Scroll, ImagesGSAP, CSS onlyAdvancedCompressed weight: Demo 8.8 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

Scroll inside the preview

The archive of Halde, a made-up architecture studio, on warm paper: as you scroll, every project arrives as a narrow upright window rising from its sill, then its shutter swings on the hinge in perspective, catches the light, goes edge-on and stops past the hinge, and the window widens over the real photo of the building, which stays still. Beside it, in a thin column, the name, city, year and use rise, and a tiny plan draws the swing of the leaf. The four photos are real (CC0).

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>
<!--
  "Shutter project archive" 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>Project archive, each window opening like a shutter</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 project archive of Halde, a made-up architecture studio. Scrolling down, the stage stays still: every
       project arrives as a narrow upright window, then its shutter swings open on its hinge and the window widens
       over a real photo of the building, which never moves; name, city and year rise in a thin column beside it -->
  <header class="barra">
    <p class="marchio">
      <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 20V4h16" /><path d="M9 20V9h11" /></svg>
      Halde
    </p>
    <nav class="barra__voci" aria-label="Main">
      <a href="#" aria-current="page">Archive</a>
      <a href="#">Studio</a>
      <a href="#">Contact</a>
    </nav>
  </header>

  <main>
    <section class="apertura">
      <p class="piccolo">Halde, architects</p>
      <h1 class="titolo">Four buildings, <em>four windows.</em></h1>
      <p class="piccolo piccolo--tenue">
        Scroll to open them
        <svg class="giu" viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg>
      </p>
    </section>

    <section class="archivio" data-archivio>
      <div class="palco">
        <div class="scena">
          <div class="colonna">
            <p class="etichetta">Selected work</p>
            <div class="schede">
              <div class="scheda" data-scheda>
                <h2 class="nome"><span class="riga"><span>Terrace House</span></span></h2>
                <dl class="dati">
                  <div><dt><span class="riga"><span>City</span></span></dt><dd><span class="riga"><span>Porto</span></span></dd></div>
                  <div><dt><span class="riga"><span>Year</span></span></dt><dd><span class="riga"><span>2019</span></span></dd></div>
                  <div><dt><span class="riga"><span>Use</span></span></dt><dd><span class="riga"><span>Housing</span></span></dd></div>
                </dl>
              </div>
              <div class="scheda" data-scheda>
                <h2 class="nome"><span class="riga"><span>Glass Exchange</span></span></h2>
                <dl class="dati">
                  <div><dt><span class="riga"><span>City</span></span></dt><dd><span class="riga"><span>Rotterdam</span></span></dd></div>
                  <div><dt><span class="riga"><span>Year</span></span></dt><dd><span class="riga"><span>2021</span></span></dd></div>
                  <div><dt><span class="riga"><span>Use</span></span></dt><dd><span class="riga"><span>Offices</span></span></dd></div>
                </dl>
              </div>
              <div class="scheda" data-scheda>
                <h2 class="nome"><span class="riga"><span>Fold Pavilion</span></span></h2>
                <dl class="dati">
                  <div><dt><span class="riga"><span>City</span></span></dt><dd><span class="riga"><span>Valencia</span></span></dd></div>
                  <div><dt><span class="riga"><span>Year</span></span></dt><dd><span class="riga"><span>2023</span></span></dd></div>
                  <div><dt><span class="riga"><span>Use</span></span></dt><dd><span class="riga"><span>Gallery</span></span></dd></div>
                </dl>
              </div>
              <div class="scheda" data-scheda>
                <h2 class="nome"><span class="riga"><span>North Tower</span></span></h2>
                <dl class="dati">
                  <div><dt><span class="riga"><span>City</span></span></dt><dd><span class="riga"><span>Oslo</span></span></dd></div>
                  <div><dt><span class="riga"><span>Year</span></span></dt><dd><span class="riga"><span>2025</span></span></dd></div>
                  <div><dt><span class="riga"><span>Use</span></span></dt><dd><span class="riga"><span>Mixed use</span></span></dd></div>
                </dl>
              </div>
            </div>
            <!-- the swing of the shutter, drawn in plan as on a drawing: the hinge, the leaf and its dashed arc -->
            <svg class="pianta" data-pianta viewBox="0 0 64 40" aria-hidden="true">
              <path class="pianta__muro" d="M2 36h8M54 36h8" />
              <path class="pianta__arco" data-arco d="" />
              <path class="pianta__anta" data-anta-pianta d="" />
              <circle class="pianta__cardine" cx="54" cy="36" r="1.4" />
            </svg>
          </div>

          <div class="cornice" data-cornice>
            <i class="telaio" aria-hidden="true"></i>
            <figure class="vano" data-vano><div class="vano__foto"><img src="terrazze.webp" alt="Terrace House: white balconies stacked up a housing block" width="576" height="720" decoding="async"><i class="vano__ombra"></i></div></figure>
            <figure class="vano" data-vano><div class="vano__foto"><img src="vetro.webp" alt="Glass Exchange: a glass facade rising into the sky" width="576" height="720" decoding="async"><i class="vano__ombra"></i></div></figure>
            <figure class="vano" data-vano><div class="vano__foto"><img src="pieghe.webp" alt="Fold Pavilion: a facade of folded metal panels" width="576" height="720" decoding="async"><i class="vano__ombra"></i></div></figure>
            <figure class="vano" data-vano><div class="vano__foto"><img src="torre.webp" alt="North Tower: a tall building seen from below" width="576" height="720" decoding="async"><i class="vano__ombra"></i></div></figure>
            <i class="cardini" aria-hidden="true"></i>
          </div>
        </div>
      </div>
    </section>

    <section class="apertura apertura--fine">
      <h2 class="titolo titolo--medio">Have a site <em>in mind?</em></h2>
      <a class="pulsante" href="#"><span>Start a project</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></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>

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.

53 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 “Shutter project archive” 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

At the top of the page of Halde, a made-up architecture studio, the heading “Four buildings, four windows.” invites you down. Then the stage stops: a thin column on the left and, on the right, the frame of a window drawn as a hairline with two dark hinges on its right side (on a phone the column sits under the window). The first project arrives as a narrow window, a quarter of the width, rising from its sill over the real photo of the building; the rest of the frame is closed by a shutter the same colour as the paper, so all you see is an upright slot. As you scroll the shutter turns on its hinge towards you, drawn in perspective: it stretches above and below the frame, catches the light on its free edge and darkens towards the hinge, shows the fine line of its panel and throws a soft shadow into the window. It goes edge-on, stops as a thin blade past the hinge one degree too far and settles. The photo behind never moves: it is the window that widens. In the column the project name, the city, the year and the use rise line by line, and under them a tiny technical-drawing plan, with the wall and the hinge, draws the clay leaf and its dashed arc as it opens. At the next project the open window slides away upwards and a new narrow window rises in its place, while the lines of the column leave upwards and the new ones arrive. There are four projects: Terrace House in Porto (white balconies stacked up), Glass Exchange in Rotterdam (a glass facade into the sky), Fold Pavilion in Valencia (folded metal panels) and North Tower in Oslo (towers seen from below in a blue sky). At the end “Have a site in mind?” and the “Start a project” button. Everything follows the scroll, backwards too.

How it works

A still stage and some numbers

The section is 620vh tall and a 100vh sticky stage stays still inside it. A GSAP timeline tied to the scroll with scrub SCRUB moves no elements but three numbers per project: how far the window has arrived, how far the shutter has opened, how far it has left. On every update a single function redraws everything from those numbers.

The shutter in perspective, by hand

The shutter is an SVG polygon. Each of its points has a height and a distance from the hinge: turned by an angle, x becomes the width minus the distance times the cosine and z (towards you) the distance times the sine; then perspective multiplies it by D / (D − z), with D equal to DEPTH widths. So the free edge stretches above and below the frame and, past a certain opening, crosses to the other side of the hinge and shows its back.

The window widening over a still photo

The photo always fills the whole frame with object-fit cover and never moves: only the clip-path inset of its holder changes, its right side following the projected free edge of the shutter. At first the window is NARROW of the frame wide, and the closed shutter has the colour of the paper, so it reads as a slot.

Light, shadow and the settle

The face of the shutter has a gradient in screen coordinates from the free edge (lighter) to the hinge (darker), stronger with the sine of the angle; a hairline draws its panel in the same perspective and the free edge has a thread of light. Inside the window a soft shadow follows the edge, darkest mid-swing (SHADOW). The angle follows power3.inOut up to ANGLE and adds half a sine of SETTLE degrees at the end: one degree too far and back.

The column and the plan

Each line of the column sits in its own window with overflow hidden and rises from below, staggered from the others; on the way out it leaves upwards. The tiny SVG plan takes the same angle as the shutter and redraws the line of the leaf and the dashed arc it has swept, as on architectural drawings.

Values to change

NameFileDefaultWhat it changes
NARROWscript.js0.24How wide the window is before the shutter opens, as a share of the frame.
ANGLEscript.js86How many degrees the shutter swings open.
DEPTHscript.js4How far away the eye is, in frame widths (less = stronger perspective).
SETTLEscript.js2How many degrees the shutter overshoots before it settles.
SHADOWscript.js0.8How dark the shadow of the shutter is inside the window.
SCRUBscript.js0.9How many seconds the archive takes to catch up with the scroll.

Try them in the Playground

When to use it

For the projects page of an architecture, interiors or landscape studio, a builder or a real-estate agency: when every job has one good photo and a few facts. Swap the photos in the four img tags of the HTML (the webp files in the folder), the texts in the column, the colours in :root.

On phones

The same animations at adapted sizes: the window sits on top, measured on width and height with room for the shutter that reaches out, and under it the column becomes a row with the name and the three facts side by side; the tiny plan is hidden.

With reduced motion

No movement: the shutters are already open and the projects cross-fade from one to the next, with their column.

Pitfalls

  • With perspective the free edge, near 90 degrees, ends up past the hinge: the window opens to the smaller of the projected edge and the width, and when the shutter crosses over it takes the darker colour of its back.
  • The face gradient is in userSpaceOnUse and is rewritten every frame from the free edge to the hinge, or the light would stay still while the leaf turns.
  • stop-color does not take var() as an attribute: the stop colours are written in style.stopColor.
  • The shutter reaches above and below the frame as it turns towards you: the frame keeps a margin of 13% of its height, so it never leaves the phone preview box.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.8 KB; the libraries: GSAP + ScrollTrigger 45 KB.

Testing

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