Skip to content
animorio
IT
Back to the library

Bending footer

Scroll, Physics, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 9.9 KBGSAP 28 KBFreeDownload the zip

Scroll inside the preview

The chapter of a made-up comic saga, Emberfell, that ends in a warm black footer: “Next: Book Two”. Once at the end, as you keep turning the wheel the top edge of the footer bends up like a sail, with a thin gold line on it, and the more it bends the harder it pushes back. Stop, and it falls back on a spring; insist past the threshold, and the footer rises to become the header of the next book while a paper brush stroke climbs from below. Minimal style, warm paper, warm black and gold.

Rebuilt from scratch studying thorgal.com by Caracal, REEPLE Studio: 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>
<!--
  "Bending footer" 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 footer that bends and takes you to the next page</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mulish@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Emberfell, a made-up comic saga in five books from a made-up publisher, Quire Press. Each book is a short page
       that ends in a warm black footer: "Next: Book Two". Past the end of the page, every turn of the wheel bends the
       top edge of the footer up like a sail, with a thin gold line along it. Stop, and it falls back on a spring.
       Insist past the threshold, and the footer rises to become the header of the next book while a paper brush
       stroke climbs from below. The pages are built by script.js from the BOOKS list. -->
  <main class="palco" data-palco aria-live="polite"></main>
  <div class="velo" data-velo aria-hidden="true"></div>

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

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 “Bending footer” 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

It opens on the warm black header of Emberfell’s first book, “Book One”, “The Ash Road” in a large serif, its lower edge torn like a paper brush stroke; below, two short paragraphs of the chapter and “End of Book One”. At the bottom is the black footer: “Next: Book Two”, “The Glass Tide” with a drawn arrow, and lower down “Keep scrolling” with a thread 64 pixels long. A very thin gold line runs along the top edge of the footer and, nine pixels below, a second, fainter gold line. Once at the end, every notch of the wheel bends the edge up along a parabola, highest in the middle and still at the sides: the gold line follows it and brightens, the second line chases it on a softer spring and goes past by a hair, the title rises by a hair and the thread of “Keep scrolling” fills with gold up to the threshold. The more the edge is bent, the less each notch bends it. If the wheel stops for six frames, the edge goes flat again on a spring that dips just below and settles. Past the threshold, the footer rises to the top of the screen in seven tenths of a second: the edge swells and flattens, “Next:” fades, “Book Two” and the title fly to their places in the header and the title grows, while a paper-coloured brush stroke with a frayed edge climbs from below. Then the new chapter rises line by line. Every footer leads to the next book, and the fifth goes back to the first. Every four seconds a six-pixel wave runs through the letters of “Keep scrolling”; on hover the title gains weight and the arrow steps forward. When nobody touches it, it scrolls down by itself, tries once without reaching the threshold, then passes, shows the next book and starts again.

How it works

A page that scrolls inside the stage

Each book is an article with overflow auto and overscroll-behavior contain, inside a fixed stage as tall as the screen: the page scrolls on its own, the wheel past the end does not spill into the page that hosts it, and the passage can place the next book under the current one. Header, chapter and footer are built from a list of five books.

The wheel past the end

A non-passive wheel listener: within 50 pixels of the end of the page, each positive deltaY is stopped and adds deltaY × 0.001 × (1 − arc / 1.5) to the arc, up to 1.5. The factor in brackets is the resistance: near the maximum each notch counts for less and less. With a finger the same through touchmove (the finger’s travel times 2.5), with the down arrow, space and page down a notch of 100.

The edge is a parabola

The footer has an SVG above it with three paths. The curve 4x(1 − x) is a quadratic Bézier whose control point sits twice as high as the peak: the peak is arc × 0.05 × the screen height. The first path is the black that rises into the paper, the second the gold line on the edge, the third the faint line nine pixels below, which follows the arc on a softer spring of its own.

The spring, written by hand

GSAP’s ticker counts the frames without wheel: after six the arc goes back to zero on a spring integrated by hand in steps of a two-hundred-and-fortieth of a second, acceleration = (−300 × arc − 25 × velocity) / 0.8, starting from the arc’s own velocity. Damping ratio 0.81: it dips just below zero and settles.

The footer becomes the header

At the threshold (0.7, or 0.3 under 768 pixels) the next book is prepared hidden under the current one and its name and title are measured. A copy of the footer in a fixed panel rises to zero in 0.7 s on the curve cubic-bezier(.42, 0, .58, 1), solved by hand; the edge follows sin(p·π) × 1.5 and the name and title fly from their place to the header’s (FLIP). A paper-coloured brush stroke climbs with yPercent (1 − p) × 100 and stops exactly on the torn edge of the new header, which has the same drawing: there the veil is removed and no seam shows.

Values to change

NameFileDefaultWhat it changes
ARC_HEIGHTscript.js0.05How high the edge rises per unit of arc, as a share of the screen height.
ARC_MAXscript.js1.5The most the arc can bend.
WHEEL_GAINscript.js0.001Arc added per pixel of wheel, before the resistance.
THRESHOLDscript.js0.7The arc that opens the next page.
THRESHOLD_SMALLscript.js0.3The same threshold under 768 pixels of width.
STILL_FRAMESscript.js6Frames without wheel before the arc falls back.
STIFFNESSscript.js300Stiffness of the spring that brings it back.
DAMPINGscript.js25Damping of the spring that brings it back.
MASSscript.js0.8Mass of the spring that brings it back.
PASSAGEscript.js0.7Seconds the footer takes to become the next header.
SWELLscript.js1.5How far the edge swells during the passage.
AUTO_AFTERscript.js6Seconds without a touch before it plays by itself again.

Try them in the Playground

When to use it

For sites that are read in sequence: the chapters of a book or a comic, the episodes of a podcast, the articles of a magazine, the projects of a portfolio, the stages of a brand story. Instead of a “next page” button there is a gesture: you keep scrolling and you arrive.

On phones

The same gestures with a finger: past the end, the finger moving up bends the edge as the wheel does. The threshold drops to 0.3 under 768 pixels, as on the site, because the gesture is shorter on a phone; header, footer and type are measured on the height too, so the page fits in the phone preview.

With reduced motion

No bending edge, no spring, no rising footer and no brush stroke: past the end only the gold thread of “Keep scrolling” fills in with a fade, and at the threshold the next book fades in over the current one. When it plays by itself it jumps to the end with a fade instead of scrolling.

Pitfalls

  • The wheel past the end must be stopped with preventDefault in a non-passive listener, and the scroller needs overscroll-behavior contain: otherwise, inside an iframe, the host page scrolls.
  • The passage starts with the arc already bent: if the edge followed sin(p·π) × 1.5 straight away it would snap flat. Here it follows the higher of the hand’s arc fading out and the passage’s swell.
  • The footer title has a CSS transition on transform for the press state: on the flying copy it must be switched off, or the transforms written every frame arrive late and the title lags behind the name.
  • With automatic font-optical-sizing the title changes its drawing as it changes size and the FLIP does not match: the opsz axis is fixed at 96.
  • The brush stroke and the copy of the footer sit in a fixed veil with overflow hidden, so what hangs below the screen during the passage does not count as content leaving the preview.

Libraries

GSAP 3.15.0, Fraunces (font variabile) 5.3.0, Mulish (font variabile) 5.3.0.

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

Testing

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