Skip to content
animorio
IT
Back to the library

Giant title strips

Transitions, TextGSAP, CSS onlyMediumCompressed weight: Demo 6.1 KBGSAP 28 KBFreeDownload the zip

The page change between the projects of a made-up film studio, on black: a giant title cut out of the film’s photo and below it a row of vertical strips of the same photo. Moving to the next project the strips roll like reels onto the new photo, staggered and alternating up and down, the old letters slide away behind their masks and the new ones rise on a short spring, then the credits come in.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN.

<!doctype html>
<!--
  "Giant title strips" 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 strip page transition with a giant title</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>
  <main class="stage" data-stage>
    <!-- the project page of a made-up film studio: the header with the index of the three projects, the giant title
         cut out of the project's image, the row of vertical strips of the same image, the credits and the arrows -->
    <header class="top">
      <a class="brand" href="#">Orvelle Pictures</a>
      <nav class="index" data-index aria-label="Projects">
        <span class="index__bar" data-bar aria-hidden="true"></span>
      </nav>
    </header>

    <h1 class="title" data-title aria-live="polite"></h1>

    <div class="strips" data-strips aria-hidden="true"></div>

    <footer class="foot">
      <div class="meta" data-meta>
        <p class="meta__line" data-line></p>
        <p class="meta__credit" data-credit></p>
      </div>
      <div class="nav">
        <button class="arrow" type="button" data-prev aria-label="Previous project">
          <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M19 12H5.5M11 6l-6 6 6 6"></path></svg>
        </button>
        <span class="next" data-next-name></span>
        <button class="arrow" type="button" data-next aria-label="Next project">
          <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h13.5M13 6l6 6-6 6"></path></svg>
        </button>
      </div>
    </footer>
  </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.

11 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 “Giant title strips” 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 almost black background sits the page of a project by Orvelle Pictures, a made-up film studio. Top left the studio’s name, top right the index of the three projects, Dusk, Swell and Ridge, with a thin gold bar beside the open one. In the middle the project’s title, huge, upper case and wide, and its letters are windows onto the film’s still, real photos: the dunes of a desert at sunset with a low sun, the waves of a sea under a full moon among the clouds, snowy mountain ridges at night with the moon above. Below, nine vertical strips (five on the phone) show the same photo cut into slats, like film frames. At the bottom the genre, year and running time, a line of credits, and on the right two round arrows with the name of the next project. Moving to the next project the strips roll like slot machine reels, one up and the next down, six hundredths of a second apart, and stop on the new photo with a hair of bounce; meanwhile the old title’s letters slide up one by one behind their masks, the new ones rise from below on a short spring, the index bar moves down to the new name and the credits leave and come back. You move with the arrows, the index or the arrow keys; on its own the loop changes project every three seconds.

How it works

Three photos, cropped in pixels

Each project has its own real photo (dusk.webp, swell.webp, ridge.webp), loaded once at the start to know its width and height. A small function does what background-size cover does, but in pixels: for a box of a given size it works out how much to enlarge the photo and where to shift it, keeping in view a point chosen for each photo (the sun, the moon, the horizon). It runs twice, for the row of strips and for the title, with a different point: in the low, wide title the dunes, the waves and the peaks stay in view.

The strips are a single image

All strips use the same photo, sized for the whole row and shifted by how far the strip is from the edge (the crop offset minus offsetLeft): together they rebuild the photo, and each stays a slat separated from the others by a gap.

The reel with two frames

Inside each strip is a reel with two frames: the visible one and the new one, waiting above or below. The reel moves a whole frame in 1.15 seconds with power3.inOut, even strips one way and odd strips the other, 0.06 seconds apart; once there it goes six tenths of a point past and comes back. Then the visible frame takes the new image and the reel returns to zero unseen.

Letters as windows

Each letter is a mask (overflow hidden) holding its ink: the text colour is transparent and the background is the photo cropped for the title, clipped to the letter with background-clip text and shifted by how far the letter is from the title’s corner. So the letters together show a single photo. The ink leaves upwards and the new one rises from below with back.out(1.35), 0.045 seconds apart.

The loop and the controls

The arrows, the index and the arrow keys call the same function; while a transition runs the others wait. When it ends a GSAP delayedCall sets up the next one after HOLD seconds, so the preview runs on its own and the bench can pause it.

Values to change

NameFileDefaultWhat it changes
STRIPSscript.js9How many image strips there are on a computer (five on a phone).
ROLLscript.js1.15The seconds a strip takes to roll onto the new image.
STRIP_STAGGERscript.js0.06The seconds between one strip and the next.
LETTER_STAGGERscript.js0.045The seconds between one title letter and the next.
HOLDscript.js3.2The seconds a project stays still before the loop moves to the next one.
ACCENTscript.js'#e8b04a'The colour of the index bar and of the arrows’ border.

Try them in the Playground

When to use it

For the portfolio of a film, photography or architecture studio, for an agency’s projects page or for an events site with several editions: each project has its own image and its big name, and moving from one to the next becomes a small moment of cinema.

On phones

The same transition with adapted sizes: the strips become five, the title is measured on the width and height of the screen and stays on one line, the next project’s name beside the arrows is hidden. Tapping the arrows and the index does the same as clicking.

With reduced motion

No reels and no rising letters: the new image fades in on the strips, the title and the credits fade out and back with the new project.

Pitfalls

  • The letters’ background must be shifted by measuring each mask, not the ink: the ink moves during the transition and the measure would change halfway.
  • The photo crops must be worked out again whenever the window changes size: they are in pixels, as large as the row and the title, and with the old size the strips no longer rebuild the photo.
  • The reel goes back to zero only after the visible frame has taken the new image: the other way round, the old image shows again for a frame.
  • The opening starts only once the three photos have loaded: before that their size is unknown and the crop would be wrong. The same point of the photo does not suit both the row and the title: in the tall row the moon stays in view, in the low title the horizon and the peaks are kept.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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