Skip to content
animorio
IT
Back to the library

Next project transition

Transitions, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 6.7 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The page change between the projects of Verrin, a made-up design studio, tied to the scroll and in the clean style of today’s portfolios: the case study page runs on to its footer with the next project, then shrinks into the row of the studio’s work, with the other projects coming in from the sides as small pages with rounded corners and a soft shadow. The row slides, the next project reaches the middle and grows back into a full page, while its title sinks under its mask and rises again word by word. Scrolling back rewinds it all.

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>
<!--
  "Next project 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>Verrin Studio, selected work</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 page of a made-up design studio, Verrin. Scrolling to the end of the project, the page reaches its
       footer, then shrinks into the row of the studio's work; the row slides on to the next project, which grows back
       into a full page while its title rises line by line. Scrolling back undoes it all -->
  <section class="corsa" data-corsa>
    <div class="palco" data-palco>
      <header class="barra">
        <span class="marchio"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 4l7 12 7-12"/></svg>Verrin Studio</span>
        <span class="didascalia" aria-live="polite"><span data-didascalia>Case study</span></span>
        <nav class="voci"><span>Work</span><span>About</span><span>Contact</span></nav>
      </header>

      <div class="fila" data-fila>
        <article class="lavoro" data-lavoro data-nome="Northline">
          <div class="lavoro__dentro" data-dentro>
            <div class="pagina">
            <div class="copertina copertina--nord" data-copertina>
              <span class="nord__sole" data-forma></span><span class="nord__linea"></span><span class="nord__scritta">NORTHLINE</span>
            </div>
            <div class="testa">
              <h2 class="nome"><span class="riga"><span data-parola>Northline</span></span></h2>
              <dl class="dati"><div><dt>Client</dt><dd>Northline Ferries</dd></div><div><dt>Year</dt><dd>2026</dd></div><div><dt>Role</dt><dd>Identity, signage</dd></div></dl>
            </div>
            <p class="testo">A ferry line between six small harbours, given one calm mark that works on a hull, a ticket and a phone.</p>
            </div>
            <a class="prossimo" href="#" tabindex="-1">
              <span class="prossimo__eti">Next project</span>
              <span class="prossimo__nome">Pell &amp; Co</span>
              <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6"/></svg>
            </a>
          </div>
        </article>

        <article class="lavoro" data-lavoro data-nome="Pell &amp; Co">
          <div class="lavoro__dentro" data-dentro>
            <div class="pagina">
            <div class="copertina copertina--pell" data-copertina>
              <span class="pell__scatola pell__scatola--a" data-forma></span><span class="pell__scatola pell__scatola--b"></span><span class="pell__scatola pell__scatola--c"></span>
            </div>
            <div class="testa">
              <h2 class="nome"><span class="riga"><span data-parola>Pell</span></span> <span class="riga"><span data-parola>&amp;&nbsp;Co</span></span></h2>
              <dl class="dati"><div><dt>Client</dt><dd>Pell &amp; Co Bakers</dd></div><div><dt>Year</dt><dd>2025</dd></div><div><dt>Role</dt><dd>Packaging</dd></div></dl>
            </div>
            <p class="testo">Boxes for a family bakery that stack like the loaves on the counter, in the colour of a good crust.</p>
            </div>
          </div>
        </article>

        <article class="lavoro" data-lavoro data-nome="Quiet Hours">
          <div class="lavoro__dentro" data-dentro>
            <div class="pagina">
            <div class="copertina copertina--quiete" data-copertina>
              <span class="quiete__telefono" data-forma><span class="quiete__luna"></span></span>
            </div>
            <div class="testa">
              <h2 class="nome"><span class="riga"><span data-parola>Quiet</span></span> <span class="riga"><span data-parola>Hours</span></span></h2>
              <dl class="dati"><div><dt>Client</dt><dd>Quiet Hours</dd></div><div><dt>Year</dt><dd>2025</dd></div><div><dt>Role</dt><dd>App design</dd></div></dl>
            </div>
            <p class="testo">A sleep app that asks for nothing after nine, with a single dial and no red badges.</p>
            </div>
          </div>
        </article>

        <article class="lavoro" data-lavoro data-nome="Tallow">
          <div class="lavoro__dentro" data-dentro>
            <div class="pagina">
            <div class="copertina copertina--sego" data-copertina>
              <span class="sego__lettera" data-forma>T</span>
            </div>
            <div class="testa">
              <h2 class="nome"><span class="riga"><span data-parola>Tallow</span></span></h2>
              <dl class="dati"><div><dt>Client</dt><dd>Tallow Quarterly</dd></div><div><dt>Year</dt><dd>2024</dd></div><div><dt>Role</dt><dd>Editorial</dd></div></dl>
            </div>
            <p class="testo">A slow magazine about candles, wax and the people who still make them by hand.</p>
            </div>
          </div>
        </article>

        <article class="lavoro" data-lavoro data-nome="Ferro Hall">
          <div class="lavoro__dentro" data-dentro>
            <div class="pagina">
            <div class="copertina copertina--ferro" data-copertina>
              <span class="ferro__arco" data-forma></span>
            </div>
            <div class="testa">
              <h2 class="nome"><span class="riga"><span data-parola>Ferro</span></span> <span class="riga"><span data-parola>Hall</span></span></h2>
              <dl class="dati"><div><dt>Client</dt><dd>Ferro Hall</dd></div><div><dt>Year</dt><dd>2024</dd></div><div><dt>Role</dt><dd>Exhibition</dd></div></dl>
            </div>
            <p class="testo">Wayfinding for an old ironworks turned gallery, painted straight onto the brick.</p>
            </div>
          </div>
        </article>
      </div>
    </div>
  </section>
  <footer class="piede">Verrin Studio and its clients are made up.</footer>

  <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.

67 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 “Next project 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 a warm grey ground sits the case study page of Northline, an identity for a made-up ferry line: the blue cover with the sun and the horizon, the big title in wide Mona Sans, the project details and a line of text. As you scroll the page runs on to its footer, «Next project · Pell & Co» with the orange arrow; then it shrinks into a small page with rounded corners and a shadow, and the studio’s other work comes in from the sides, veiled, while the caption at the top rolls to «Selected work». The row slides sideways with a slight lean, Pell & Co reaches the middle and rises a few pixels, then grows until it fills the screen: its title sinks under the mask and rises word by word, and the details and text come back last. The shapes of the cover follow the pointer a little.

How it works

One number, tied to the scroll

A paused GSAP timeline takes a single number from 0 to 1, and ScrollTrigger ties it to the scroll with the stage pinned. On every frame one function places each page from that number.

The phases

Soft steps turn that number into phases: the page running to its footer, the shrink into the row, the slide to the next project, the growth and the title rising again.

The row

Each page is as big as the stage; in the row it is scaled down and moved aside by one scaled width plus the gap. Corners and shadow are divided by the scale so they stay right at every size.

The title that rises

Each word sits in a mask: as the page grows it sinks, and once the page is full it rises again, one word after the other.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole transition takes: 2 is twice as long.
SCRUBscript.js0.7How far the pages lag behind the scroll, in seconds.
ROW_SCALEscript.js0.34How small the pages get in the row.
GAPscript.js0.03The space between the pages of the row, as a share of the width.
CORNERscript.js16The rounded corners of the pages in the row, in pixels.
LIFTscript.js10How many pixels the page in the middle of the row rises.
SHADEscript.js0.4How much the pages at the sides of the row are dimmed.
PARALLAXscript.js10How many pixels the cover shapes follow the pointer.

Try them in the Playground

When to use it

For moving between the projects of a portfolio, a design studio or an agency: whoever reaches the end of a case study sees the rest of the work and is carried to the next one without a blank jump.

On phones

The same animation with adapted sizes: the pages are measured on the stage, in the row they get a bit bigger so they can be read, and the line of text and the menu are hidden.

With reduced motion

No movement: the case study page and, halfway through the scroll, the next project fading in.

Pitfalls

  • Rounded corners and shadow shrink with the page: they must be divided by the scale, otherwise they vanish in the row.
  • With the stage pinned, sizes in pixels change on resize: width and height are read again and everything is redrawn, even halfway.
  • Each page clips its content: with overflow hidden on the page the shadow goes on the page itself, not on a child.

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.7 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

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