Skip to content
animorio
IT
Back to the library

Tape roll footer

Physics, HoverGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBMatter.js 25 KBFreeDownload the zip

The tape roll footer of Sweet Tape, rebuilt with a made-up brand, Holdfast: under the links, the newsletter sign-up and the legal line, four rolls of sticky tape and three social discs roll into a dark tray from the left and the right, bounce and squash on every hit; the pointer pushes them, and they can be grabbed and thrown. Physics with Matter.js and the site's real numbers.

Rebuilt from scratch studying sweet-tape.com by bikebear: 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>
<!--
  "Tape roll 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>Holdfast, the footer</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 footer of a made-up tape maker, Holdfast: links, the newsletter and the legal line, and in a tray at the
       bottom four tape rolls and three social discs that roll in from the left and the right when the footer comes
       into view, bounce, squash a little on every hit, can be pushed with the pointer, grabbed and thrown. -->
  <div class="fine-pagina" aria-hidden="true"></div>
  <footer class="piede" data-piede>
    <div class="piede__cima">
      <div class="piede__marchio">
        <p class="occhiello">Holdfast Tape Co.</p>
        <h2 class="titolo">Built to hold.</h2>
      </div>

      <nav class="colonne" aria-label="Footer">
        <div class="colonna">
          <p class="colonna__testa">Tapes</p>
          <ul>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Masking</span></a></li>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Cloth</span></a></li>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Double-sided</span></a></li>
            <li class="voce-extra"><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Packing</span></a></li>
          </ul>
        </div>
        <div class="colonna">
          <p class="colonna__testa">Company</p>
          <ul>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">About</span></a></li>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Stockists</span></a></li>
            <li><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Journal</span></a></li>
            <li class="voce-extra"><a class="voce" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Contact</span></a></li>
          </ul>
        </div>
      </nav>

      <form class="lettera" data-lettera>
        <label class="lettera__testa" for="email">One letter a month: new rolls and small fixes.</label>
        <div class="lettera__campo">
          <input id="email" type="email" placeholder="you@studio.com" autocomplete="email">
          <button class="iscriviti" type="submit" data-iscriviti>
            <span class="iscriviti__faccia"><span class="iscriviti__scritta" data-scritta>Subscribe</span></span>
          </button>
        </div>
      </form>
    </div>

    <div class="vassoio" data-vassoio>
      <p class="vassoio__nota" aria-hidden="true">Grab one. Throw it.</p>
      <div class="vassoio__ombre" data-ombre aria-hidden="true"></div>
      <div class="vassoio__palle" data-palle></div>
      <button class="lancia" type="button" data-lancia data-autoclic><span class="lancia__faccia"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 12.5c2.2-6 6.6-8.6 10-8.6M9.6 2.4 13 3.9l-1.5 3.4" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg><span>Toss one</span></span></button>
    </div>

    <div class="legale">
      <p>&copy; 2026 Holdfast Tape Co.</p>
      <p class="legale__voci"><a class="voce voce--piccola" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Privacy</span></a><a class="voce voce--piccola" href="#"><span class="voce__nastro" aria-hidden="true"></span><span class="voce__testo">Terms</span></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/matter-js@0.20.0/build/matter.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.

42 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 “Tape roll 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 warm black footer with rounded top corners, under the end of a paper coloured page. At the top the Holdfast Tape Co. brand and the title Built to hold. in a wide grotesque, two columns of links (Tapes: Masking, Cloth, Double-sided, Packing; Company: About, Stockists, Journal, Contact) and the sign-up for the monthly letter, with the email field and the light Subscribe button. Hovering a link lays a strip of orange tape with torn ends behind the word, slightly crooked, arriving on a spring with one pixel too many; the word darkens and widens. Below, a dark tray that says Grab one. Throw it.: as soon as the footer is in view, seven bodies roll in from both sides, one every 0.26 s: four tape rolls seen from the front (the ring in its colour with thin layers, the label HOLDFAST MASKING 24 MM 50 M turning with the roll, the tape end, the cardboard core with a real hole) and three light discs with the Instagram, YouTube and TikTok marks drawn by us. They fall, bounce and pile up; on every hard hit the body squashes a little along the hit and springs back. Every body has its soft shadow and a contact shadow on the floor that shrinks and fades as it rises. The passing pointer pushes them; pressing one grabs it (it lifts by a pixel, the shadow widens, the cursor becomes the closed hand), you drag it and letting go throws it. Now and then, if nobody touches, a roll is thrown by itself. Subscribing makes every roll hop. At the bottom the legal line with Privacy and Terms.

How it works

One Matter.js body for every roll

Every roll and disc is a div with an SVG inside; Matter.js keeps a circle of the same radius. On the GSAP ticker the world takes a step (at most 16.66 ms) and the div takes translate3d from the body's position, while the drawing inside takes rotate from the angle: as on the site, but with one more layer, so light and shadow do not turn with the roll. Bodies with restitution .32, friction .16, frictionAir .004, density .001, gravity 60 times a hundredth of the tray width over a million.

The entry from both sides

The bodies start outside the tray, one left and one right, one every 0.26 s, at heights stepping down from the top: speed 55 and drop 6 hundredths per second, spin 5. Until they are all inside the side walls do not touch them (collisionFilter mask -3, the walls are category 2) and a force pushes them to the middle; once inside the mask goes back to -1. Top speed is 85 hundredths per second.

Push, grab, throw

The moving pointer pushes bodies within 5 hundredths with a force that follows its step (the site's formulas). Pressing a body creates a Constraint to the pointer with stiffness .06 and damping .08, hooked at a third of the distance from the centre, and the spin is braked by 10% each step; letting go, it flies with the speed it had. A drag of more than 6 px is not a click on the social discs.

The squash instead of the sound

The site plays a pop whose volume follows the hit force (from 10 to 70). Here the same force, the relative speed along the hit normal, decides how much the body squashes along that direction (up to SQUASH): rotate, scale and rotate back, then half a second of elastic.out(1, .38) makes it round again.

The shadows and the hand

Every body has a soft halo that never turns and a contact shadow on the tray floor that shrinks and fades as the body rises. The grabbed body lifts by a pixel and its halo widens; the cursor is the open hand on the tray and the closed one while holding.

Values to change

NameFileDefaultWhat it changes
GRAVITYscript.js60Gravity, in hundredths of the tray width (the site uses 60).
BOUNCEscript.js0.32How much the bodies bounce (the site uses .32).
FRICTIONscript.js0.16Friction on the floor and between rolls (the site uses .16).
AIRscript.js0.004Air friction (the site uses .004).
SPEEDscript.js55Entry speed (the site uses 55).
DROPscript.js6Downward speed on entry (the site uses 6).
SPINscript.js5Spin on entry (the site uses 5).
STAGGERscript.js0.26Seconds between one body and the next (the site uses .26).
ROLLscript.js0.17Roll diameter, as a share of the tray width.
DISCscript.js0.68Disc diameter compared with the rolls.
SQUASHscript.js0.12How much a body squashes on the hardest hit.
PUSHscript.js5Radius of the pointer push (the site uses 5).
STIFFscript.js0.06Stiffness of the grab (the site uses .06).
TOSS_EVERYscript.js4Seconds of quiet before a roll is thrown by itself.

Try them in the Playground

When to use it

For the footer of a brand that sells objects with a recognisable shape (tapes, buttons, balls, sweets, paper rolls): the last spot of the page becomes a small game that makes people stay, and the social discs live inside it like the others.

On phones

The same footer: a smaller title, the sign-up under the title, the links in one wrapping line, the tray takes all the space left (measured on the height too) and the rolls are sized from the tray, so they pile up in two layers. With a finger you grab and throw them; the tray does not scroll the page.

With reduced motion

No physics: the rolls and discs already rest in a row on the tray floor, each turned a little, and do not move. The tape behind the links appears with a fade.

Pitfalls

  • The tray changes height when the font arrives and when the viewer's safety net makes the demo taller: measured once, the floor stayed in the wrong place and the rolls went below. A ResizeObserver on the tray rebuilds the world keeping positions, speeds and turns, and the bodies not yet in start again from their turn.
  • Matter.js warns when a step is longer than 16.667 ms: the site cuts at 20, here at 16.66.
  • The site's walls sit 2 hundredths outside the edge, and in the rounded tray the rolls touching a wall looked cut: here the walls are on the edge.
  • On a portrait phone, rolls sized only on the width were tiny in a very tall tray: the diameter takes the height into account too.
  • With translate and rotate on the same element, light and shadow turned with the roll too: the turning drawing is one child, the light another, still child.

Libraries

GSAP 3.15.0, Matter.js 0.20.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB, Matter.js 25 KB.

Testing

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