Skip to content
animorio
IT
Back to the library

Stretchy footer

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

Scroll inside the preview

The footer of Pantile, a made-up branding studio, with its name along the bottom so big it fills the width: before it arrives the name waits squashed flat against the floor, then the scroll pulls it up like rubber, faster scrolling pulls it further, and near the end it lets go and settles on an elastic. The letters of the links jump one by one under the pointer. Rebuilt from scratch from the footer of Two26 Studio.

Rebuilt from scratch studying two26.studio by ZzStudio: 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>
<!--
  "Stretchy 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>Pantile, the stretchy footer</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/big-shoulders-display@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the last screen of the site of Pantile, a made-up branding studio, and then its footer. At the bottom of the
       footer the studio's name, set so big it fills the width, waits squashed flat against the floor. The scroll pulls
       it up like rubber, faster scrolling pulls it further, and near the end it lets go and settles on an elastic -->
  <section class="ultima" data-ultima>
    <p class="ultima__marca" data-entra>
      <svg viewBox="0 0 28 16" aria-hidden="true"><path d="M1.5 14.5c0-6 3.6-11 8.2-11s8.1 5 8.1 11" /><path d="M10.1 14.5c0-6 3.6-11 8.2-11s8.2 5 8.2 11" /></svg>
      Pantile
    </p>
    <h2 class="ultima__titolo" data-entra>Still scrolling?<br>Let’s give your brand a roof to stand on.</h2>
    <a class="pillola" href="#" data-pillola data-entra>
      <span class="pillola__fondo" aria-hidden="true" data-pillola-fondo></span>
      <span class="pillola__testo">Start a project</span>
    </a>
    <p class="ultima__nota" data-entra>Identity, packaging and websites for people who make things.</p>
  </section>

  <footer class="ft" data-ft>
    <div class="ft__alto">
      <div class="ft__scrivi">
        <p class="ft__etichetta">New business</p>
        <a class="ft__mail" href="mailto:hello@pantile.studio" data-salta>hello@pantile.studio</a>
      </div>
      <nav class="ft__colonne" aria-label="Footer">
        <ul class="ft__lista">
          <li><a href="#" data-salta>Work</a></li>
          <li><a href="#" data-salta>Studio</a></li>
          <li><a href="#" data-salta>Journal</a></li>
          <li><a href="#" data-salta>Contact</a></li>
        </ul>
        <ul class="ft__lista">
          <li><a href="#" data-salta>Instagram</a></li>
          <li><a href="#" data-salta>Behance</a></li>
          <li><a href="#" data-salta>LinkedIn</a></li>
        </ul>
      </nav>
      <button class="su" type="button" data-su>
        <span class="su__fondo" aria-hidden="true" data-su-fondo></span>
        <span class="su__testo">Back to top</span>
        <span class="su__tondo" aria-hidden="true" data-su-tondo>
          <svg viewBox="0 0 16 16" data-su-freccia><path d="M8 13V3.4M3.6 7.6 8 3.2l4.4 4.4" /></svg>
        </span>
      </button>
    </div>

    <!-- the name: the stretch is a scaleY from the bottom centre; the cap line and the reading ride on top of it -->
    <div class="ft__nome" data-nome>
      <i class="ft__ombra" aria-hidden="true" data-ombra></i>
      <div class="ft__gomma" data-gomma>
        <span class="ft__parola" data-parola>PANTILE</span>
        <span class="ft__righe" aria-hidden="true" data-righe>PANTILE</span>
      </div>
      <i class="ft__cap" aria-hidden="true" data-cap><span data-lettura>× 0.15</span></i>
      <i class="ft__base" aria-hidden="true"></i>
    </div>

    <div class="ft__piede">
      <p>© 2026 Pantile Studio</p>
      <p class="ft__piede-centro">Made by hand, mostly.</p>
      <p><a href="#" data-salta>Privacy</a></p>
    </div>
  </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.

44 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Stretchy 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

A short page that ends: the last screen of the site of Pantile, a made-up branding studio, on warm paper, with its two-tile mark, the condensed headline «Still scrolling? Let’s give your brand a roof to stand on.», the Start a project pill and a line; below it, the ink-coloured footer, as tall as the screen, with a fine grain and a terracotta light rising from the floor. At the top the address hello@pantile.studio, two columns of links (Work, Studio, Journal, Contact; Instagram, Behance, LinkedIn) and the Back to top button with its terracotta circle and arrow; at the bottom the copyright line. Above that line, the name PANTILE in Big Shoulders Display, terracotta lit on top and dark at the floor, measured on the ink of the letters so it touches both edges. Until the footer arrives the name waits squashed to 15% of its height, resting on the floor with a wide dark shadow. As the footer comes up the scroll pulls it up from the bottom centre: the further you go the taller it gets, and scrolling fast pulls it a little further, up to 1.4 times. Past its proper height the rubber narrows slightly, like a band, and thin stretch marks appear inside the letters. A dashed line runs along the tops of the letters with the reading changing, from × 0.15 to × 1.40. Near the bottom the name lets go and settles at × 1.00 on an elastic that swings and comes to rest; going back up until you leave the footer it goes flat again. Over the links the letters jump one after another, tilt a little at random, take a hairline outline and warm up in colour. Back to top fills from its circle, the arrow pulses in rhythm and a click takes you back to the top with a smooth scroll.

How it works

The name measured on its ink

A canvas measures PANTILE at 100 pixels: the ink (actualBoundingBoxLeft plus Right), the cap height and the font’s ascent and descent. The size is the smaller of the one that fills the width and the one that lets the name be pulled to 1.4 without leaving the footer. The holder is as tall as the capitals and the word is moved up just enough for the baseline to sit exactly on its bottom edge: so the scaleY from the bottom centre grows from the floor.

The rubber pulled by the scroll

A ScrollTrigger on the footer, from top bottom to bottom bottom. At every step, on the way down the goal is 0.15 + progress × 1.15 + the smaller of speed / 1500 and 0.25; on the way up 0.15 + progress × 0.95; never above 1.4. It gets there with a 0.1 second power1.out tween that replaces the one before (overwrite).

Letting go

At 90% of the footer the name breaks free: a tween to 1 in 1.4 seconds with elastic.out(1.2, 0.35), and from then on the scroll no longer pulls it. Leaving the footer upwards (onLeaveBack) it goes back to 0.15 in 0.25 seconds and is armed again.

The details of the rubber

Above 1 the rubber narrows by 0.05 for every extra height, the stretch marks (the same name on top, with a striped gradient clipped to the letters) light up, the floor shadow tightens and fades; below 1 the shadow widens and darkens. The cap line rises by height × scaleY and the reading is written with two decimals.

The jumping letters

Every link is split into one span per letter, with the whole name in aria-label. On hover, or with the Tab key, each letter goes to scale 1.14 with a random tilt between −7 and 7 degrees and a 0.4 pixel outline in text-shadow, in 0.38 seconds with back.out(1.8), 0.035 seconds apart, then comes back in 0.5 seconds with power2.out.

Values to change

NameFileDefaultWhat it changes
NAMEscript.js'PANTILE'The studio’s name, the giant word at the bottom of the footer: one word.
SQUASHscript.js0.15How flat the name waits before the footer arrives, as a share of its height (the site uses 0.15).
PULLscript.js1.15How much the scroll pulls it up on the way down, over the whole footer (the site uses 1.15).
PULL_BACKscript.js0.95The same pull on the way back up (the site uses 0.95).
SPEEDscript.js1500The scroll speed, in pixels a second, that adds one whole height (the site divides by 1500).
SPEED_MAXscript.js0.25The most the speed can add on top of the pull (the site uses 0.25).
MAX_STRETCHscript.js1.4The tallest the name can be pulled (the site uses 1.4).
LET_GOscript.js0.9How far into the footer it lets go and settles (the site uses 0.9).
SETTLEscript.js1.4The seconds of the elastic settle (the site uses 1.4).
BOUNCEscript.js1.2The amplitude of the elastic: higher swings further (the site uses 1.2).
WOBBLEscript.js0.35The period of the elastic: lower wobbles faster (the site uses 0.35).
NARROWscript.js0.05How much narrower the rubber gets while it is pulled past its rest, like a band.
JUMPscript.js1.14How big the letters of a link jump under the pointer (the site uses 1.14).
TILTscript.js7The most a jumping letter tilts, in degrees, one way or the other (the site uses 7).
STAGGERscript.js0.035The seconds between one letter of a link and the next (the site uses 0.035).

Try them in the Playground

When to use it

For the footer of a studio’s, an agency’s or a brand’s site that wants to close with a smile: the name that stretches rewards whoever scrolls all the way down, and the jumping links invite one more click.

On phones

On a phone the name is sized on the height too, the address gets a row of its own above the links, Back to top keeps only the circle with the arrow and the line in the middle of the copyright row goes; on a short screen one column of links stays. Scrolling with a finger pulls the rubber with the same numbers; the links jump on a tap.

With reduced motion

The name is already settled at its height and does not stretch, the scroll is not smoothed, the links only change colour, the buttons do not swell and the last screen fades in.

Pitfalls

  • The scaleY must run from the bottom centre of a holder as tall as the capitals, with the baseline on its edge: with the whole text box the name stretches from below the floor and seems to float.
  • The name touches the edges with its ink, not its box: letters leave a little room at their sides, read with actualBoundingBoxLeft and Right and made up for by shifting the word.
  • The rubber narrows only above 1: widening it while squashed would push it out at the sides.
  • Every step of the pull replaces the one before (overwrite: true), otherwise the 0.1 second tweens pile up and the name trembles.
  • Sizes and ScrollTrigger are worked out again once the font has arrived and on every resize: the demo window changes height while you watch.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Big Shoulders Display (font variabile) 5.3.0, Geist (font variabile) 5.3.0.

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

Testing

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