Skip to content
animorio
IT
Back to the library

Keep scrolling

Transitions, ScrollGSAPAdvancedCompressed weight: Demo 6.4 KBGSAP + CustomEase 31 KBFreeDownload the zip

At the end of the chapter you keep scrolling and a ring fills; when it is full the next chapter's card grows to full screen and lands as the picture of the new page.

Rebuilt from scratch studying realevate.agency by Or Halevi: 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>
<!--
  "Keep scrolling" 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>Keep scrolling</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>
  <!-- i quadri delle tre ore: disegni nostri, riquadro 200 x 200 -->
  <svg class="disegni" aria-hidden="true" focusable="false" width="0" height="0">
    <defs>
      <symbol id="q-alba" viewBox="0 0 200 200">
        <rect width="200" height="200" fill="#F7D9C4" />
        <rect y="70" width="200" height="30" fill="#F4C3A6" />
        <rect y="100" width="200" height="24" fill="#EFA98A" />
        <path d="M58 136 a42 42 0 0 1 84 0 Z" fill="#FBE3A0" />
        <rect y="136" width="200" height="64" fill="#6B7FA3" />
        <path d="M20 156 H80 M110 168 H180 M40 182 H120" stroke="#A9B9D3" stroke-width="3" stroke-linecap="round" />
      </symbol>
      <symbol id="q-meriggio" viewBox="0 0 200 200">
        <rect width="200" height="200" fill="#CFE6EE" />
        <circle cx="100" cy="46" r="22" fill="#FFE38A" />
        <rect y="140" width="200" height="60" fill="#C9B26A" />
        <path d="M100 140 V96" stroke="#5A4A2A" stroke-width="7" stroke-linecap="round" />
        <circle cx="100" cy="88" r="30" fill="#4F7D4A" />
        <ellipse cx="104" cy="146" rx="30" ry="5" fill="#8E7A43" />
      </symbol>
      <symbol id="q-tramonto" viewBox="0 0 200 200">
        <rect width="200" height="200" fill="#F29A5B" />
        <rect y="60" width="200" height="40" fill="#E3774A" />
        <circle cx="120" cy="118" r="38" fill="#FFD27A" />
        <path d="M0 128 C40 104 70 108 100 124 C130 140 160 118 200 112 V200 H0 Z" fill="#5B2D3F" />
        <path d="M0 154 C50 136 90 146 130 160 C160 170 180 164 200 158 V200 H0 Z" fill="#3B1E2E" />
      </symbol>
    </defs>
  </svg>

  <!-- il capitolo lo scrive lo script; in fondo la carta del capitolo dopo -->
  <main class="capitolo" data-capitolo></main>

  <!-- l'anello: si riempie mentre continui a scorrere oltre la fine -->
  <div class="anello" aria-hidden="true"><svg class="anello__pieno" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48.75" /></svg><span class="anello__testo">Continue</span></div>
  <p class="annuncio" aria-live="polite"></p>

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

8 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 “Keep scrolling” 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

Every chapter ends with the next chapter's card. At the end, if you keep scrolling the page no longer moves but a ring appears in the middle of the screen and fills clockwise, slowly, like a held breath; if you stop or scroll back it empties. When it is full, the card detaches, grows to full screen while its words leave upwards, and behind it the new chapter is born. Then the same image shrinks until it settles in the new page's picture, and the title rises out of its mask. The last chapter leads to the first: you never reach a footer.

How it works

When it arms

The accumulation starts only if the page is at the bottom and the next chapter's card is at least 22% visible. Every wheel move down adds deltaY × 0.8 (at most 64 per move) up to 1100; with a finger the movement counts two and a half times, up to 900. Wheel up subtracts.

A ring that follows

The shown value follows the accumulated one with a frame-rate independent brake: 1 − (1 − k) to the power of (dt × 120), with k 0.042 while filling and 0.16 while emptying. Idle for more than 0.9 seconds, it empties on its own.

Drawing the ring

An SVG circle with no fill and a dashed stroke: a single dash as long as the circumference. The stroke-dashoffset goes from the whole circumference (empty) to zero (full), and the circle is turned 180 degrees so it starts at nine o'clock. With mix-blend-mode difference it reads on any colour.

The flight

The card becomes fixed exactly where it is (a placeholder keeps its space) and goes full screen in 0.85 seconds on a cubic-bezier(0.5, 0.2, 0, 1). Behind it the new chapter is written and the page goes back to the top; the card then goes from full screen to the size of the new picture in 1.05 seconds, and when it lands the real picture takes its place.

Values to change

NameFileDefaultWhat it changes
SOGLIAscript.js1100 (900 al tocco)How many pixels of scrolling past the end it takes to move to the next chapter.
RIEMPIEscript.js0.042How quickly the ring follows the scrolling.
SVUOTAscript.js0.16How quickly it empties if you go back.
ATTESA_SVUOTAscript.js900Idle milliseconds before the ring empties on its own.

Try them in the Playground

When to use it

For stories in chapters (a collection, a trip, the seasons) where each page leads to the next. Always keep the card clickable: nobody guesses the gesture past the end.

On phones

With a finger you accumulate by dragging up at the bottom of the page; the ring stays in the middle. Tapping the card starts the flight straight away.

With reduced motion

No ring and no flight: the card is an ordinary button and the new chapter arrives with a fade.

Pitfalls

  • Stop the wheel (preventDefault on a non-passive listener) only when you are at the bottom and pushing down: elsewhere the page must scroll normally.
  • Inside an iframe the wheel at the bottom would scroll the page that contains it: overscroll-behavior: contain on the demo's html.
  • Before detaching the card, add a placeholder as tall as the card: without it the page suddenly gets shorter and the card starts from the wrong place.
  • Measure the arrival picture after writing the new chapter and scrolling back to the top, not before.

Libraries

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

Compressed with gzip, the three demo files weigh 6.4 KB; the libraries: GSAP + CustomEase 31 KB.

Testing

Tested on 21 October 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: Done

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