Skip to content
animorio
IT
Back to the library

Slit project photo

Scroll, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 6.1 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The case study of a made-up architecture studio, in the clean style of product interfaces: as you scroll, an orange line cuts the letters of the project title in half, the cut opens into a slit, then the top halves rise and the bottom halves sink while the real photo of the house opens between them, first in height and then to the full width. At the end the captions arrive.

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>
<!--
  "Slit project photo" 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>Vane Studio, Fallow House</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 case study of a made-up architecture studio, Vane Studio. The stage sticks while you scroll: the project title
       sits alone on warm paper, a thin orange line cuts through its letters, and the cut opens into a slit. As you keep
       scrolling the top halves of the letters rise and the bottom halves sink, the photo of the house opens between them,
       first in height and then to the full width, settling from slightly enlarged, and at the end the captions arrive. -->
  <main>
    <section class="corsa" data-corsa>
      <div class="palco" data-palco>
        <div class="spazio" data-spazio>
          <div class="tavola" data-tavola>

            <div class="testata" data-testata>
              <span class="testata__marchio">
                <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 4 L10 16 L17 4" /></svg>
                Vane Studio
              </span>
              <span class="testata__voce">Selected work</span>
            </div>

            <div class="foto" data-foto>
              <div class="foto__dentro" data-dentro>
                <img class="foto__img" src="casa.webp" alt="A low modern house with a long glass wall, a timber roof and a pool over the hills" width="960" height="720" decoding="async">
                <div class="foto__grana"></div>
              </div>
              <div class="foto__velo" data-velo></div>
              <div class="didascalia" data-didascalia>
                <div class="didascalia__riga didascalia__riga--nome" data-did>Fallow House</div>
                <div class="didascalia__riga" data-did>A low house on the hill, 2025</div>
                <div class="didascalia__lato" data-did>
                  <span>Architecture</span>
                  <span>Interiors</span>
                </div>
              </div>
            </div>

            <div class="angoli" data-angoli aria-hidden="true">
              <i class="angolo angolo--a" data-angolo></i>
              <i class="angolo angolo--b" data-angolo></i>
              <i class="angolo angolo--c" data-angolo></i>
              <i class="angolo angolo--d" data-angolo></i>
            </div>

            <h1 class="titolo" data-titolo aria-label="Fallow House">
              <span class="meta meta--su" data-meta-su aria-hidden="true"><span class="meta__testo" data-testo>Fallow House</span><i class="meta__filo" data-filo-su></i></span>
              <span class="meta meta--giu" data-meta-giu aria-hidden="true"><span class="meta__testo" data-testo>Fallow House</span><i class="meta__filo" data-filo-giu></i></span>
            </h1>

            <div class="invito" data-invito>
              <span>Scroll</span>
              <svg viewBox="0 0 12 16" aria-hidden="true"><path d="M6 2 V13 M2 9 L6 13 L10 9" /></svg>
            </div>
          </div>
        </div>
      </div>
    </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="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

20 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 “Slit project photo” 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 a warm white background there is only the project title, Fallow House, large and condensed, with the Vane Studio header at the top and the word Scroll at the bottom. As you scroll, a thin orange line draws itself from the left through the middle of the letters. The cut opens into a slit with a little settle, and the photo already shows inside it: the house’s glazing and the line of the trees. Four orange crop marks sit at the corners of the opening and follow it. Then the top halves of the letters rise and the bottom halves sink, each with its piece of the orange line, and between them the photo opens in height, starting slightly enlarged and settling; once the halves leave the board, the photo widens to the edges and loses its rounded corners. The photo, a real one, a low modern house on a hill with its long glass wall, the timber roof overhang, the wooden deck and the pool looking over the trees under a blue sky, drifts a little slower than the page. The header turns white, a dark veil comes in at the top and bottom, and the captions arrive one after another: the name, A low house on the hill, 2025, and the two tags Architecture and Interiors. Scroll back up and everything closes again.

How it works

Two copies of the same title

The title is written twice, one on top of the other: the top copy is clipped to its upper half with clip-path, the bottom one to its lower half. At rest they look like a single title; moved vertically, each takes its half of the letters with it. The cut position is a CSS variable, so it can be raised or lowered.

The photo follows the two halves

The photo fills the whole board and is clipped with clip-path: inset in pixels. A single state object, driven by the timeline, says how far apart the halves are and how wide the opening is; one function turns it into the photo’s clip, the position of the halves and of the four corner marks, so they always move together.

A board that fits every box

Everything is drawn on a 680 by 420 pixel board, scaled to fit the stage on both width and height (at most 1.6 times). The title is measured with the real typeface and fitted to 86% of the board; the photo is a real webp image with object-fit: cover, so it fills the board without stretching at any size.

The photo slower than the page

Inside the clip, the photo has 40 extra pixels above and below: the timeline moves it from +30 to -30 as you scroll and brings it from 1.22 to 1, so it seems further away and settles as it opens.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the opening takes: 2 is twice as long.
TITLEscript.jsFallow HouseThe project title that splits open.
SLITscript.js14How tall the first slit is, in pixels of the board.
ZOOMscript.js1.22How enlarged the photo starts before settling at 1.
DRIFTscript.js30How many pixels the photo drifts against the page: 0 no parallax.
CUTscript.js50Where the letters are cut, as a percent of the line from the bottom.

Try them in the Playground

When to use it

For a project page in a portfolio, the case study of an architecture, design or photography studio, the opening of a site presenting a place or a house: the title opening onto the photo is the moment the project shows itself.

On phones

The same animation with adapted sizes: the whole board scales down to fit the screen, with the same title, slit, photo and captions.

With reduced motion

The photo is already open, with its captions, and simply fades in, with no movement.

Pitfalls

  • The title halves leave the board: without a clip-path on the board they would show in the stage above and below, especially in a short box.
  • The title must be measured after document.fonts.ready: measured with the fallback typeface it would be wider or narrower than the board.
  • The header turns white only once the photo is as wide as the board: before that, half the header would be white on paper.
  • The photo has width and height written in the html and sits in a box fixed by inset: so nothing moves while it loads, and the clip measured in pixels stays right.
  • Never once: true on a timeline with a ScrollTrigger: opening the page already scrolled down would freeze everything.

Libraries

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

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

Testing

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