Skip to content
animorio
IT
Back to the library

Blinds over images

Images, ScrollGSAPEasyCompressed weight: Demo 2.7 KBGSAP + ScrollTrigger 45 KBFreeDownload the zip

Scroll inside the preview

Images open like window blinds: slats in the page colour pull back in a scattered order while the photo zooms out.

Rebuilt from scratch studying demo.clapat-templates.com by Clapat: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Blinds over images" 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>Persiane sulle immagini</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main>
    <header class="testa">
      <h1>Lavori</h1>
      <p>Scorri: ogni immagine si apre come una persiana e intanto si allontana.</p>
    </header>

    <!-- al posto di .immagine metti un <img>: l'effetto funziona uguale -->
    <ul class="griglia">
      <li class="lavoro">
        <div class="quadro"><div class="immagine immagine--tramonto" role="img" aria-label="Composizione con un sole basso"></div></div>
        <p class="didascalia"><strong>Controluce</strong><span>Identità</span></p>
      </li>
      <li class="lavoro lavoro--sotto">
        <div class="quadro"><div class="immagine immagine--rombi" role="img" aria-label="Motivo a rombi"></div></div>
        <p class="didascalia"><strong>Fotogrammi</strong><span>Sito animato</span></p>
      </li>
      <li class="lavoro">
        <div class="quadro"><div class="immagine immagine--righe" role="img" aria-label="Righe oblique"></div></div>
        <p class="didascalia"><strong>Binari</strong><span>Illustrazione</span></p>
      </li>
      <li class="lavoro lavoro--sotto">
        <div class="quadro"><div class="immagine immagine--archi" role="img" aria-label="Archi concentrici"></div></div>
        <p class="didascalia"><strong>Portico</strong><span>Motion</span></p>
      </li>
    </ul>
  </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.

17 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 “Blinds over images” 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

When an image enters the screen, the slats covering it pull back upwards one at a time in a scattered order, while the image eases from close-up to normal. The slats are not all equal and their number depends on the image width, so a grid of photos never opens the same way twice.

How it works

Slats built by the script

For each frame the script adds a .persiane layer with two to five flex spans; the last has flex 2. The colour is the page colour, so each slat looks like a piece of the page moving away.

Scattered order

stagger with from: 'random' starts the slats in a different order every time.

The zoom underneath

In the same timeline the image goes from scale 1.3 to 1 with expo.out, a little slower than the slats: the eye sees the opening first, then the settling.

Replays when scrolling back

toggleActions 'play none none reset' closes it again when you scroll back above; to open it only once, use once: true.

Values to change

NameFileDefaultWhat it changes
STECCAscript.js170Approximate slat width: the number of slats comes from the photo width.
MIN / MAXscript.js2 / 5Minimum and maximum number of slats.
ZOOMscript.js1.3How close the image starts. 1 removes the zoom.
--sfondostyle.css#eef3efIt must match the page colour behind the images.

Try them in the Playground

When to use it

Project grids, galleries, article covers. With many images in a row keep the delay between them short.

On phones

One column; narrower images get fewer slats, so the opening stays readable.

With reduced motion

No slats and no zoom: images are visible right away.

Pitfalls

  • The slat colour must match the real background, even in dark sections, or you see rectangles before the animation.
  • With images in position: absolute and object-fit: cover inside a box with aspect-ratio, Safari on iPhone does not distort them.
  • The margin-right: -1px on the slats covers the half-pixel gaps between them.

Libraries

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

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

Testing

Tested on 26 September 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