Skip to content
animorio
IT
Back to the library

Strip menu

Transitions, TextGSAP, CSS onlyMediumCompressed weight: Demo 7.4 KBGSAP 28 KBFreeDownload the zip

The home of Banyard, a made-up design studio. Press Menu and five dark strips drop one after another to cover the page, each with a rounded lower edge that squares off as it lands with a small bounce; then the big links rise out of their masks. Point at a link and the others dim, it widens and its small drawn preview comes alongside. Close lifts the strips back up in reverse, from the right.

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>
<!--
  "Strip menu" 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 full-page menu that drops in strips</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>
  <main class="stage" data-stage>
    <!-- the home of a made-up design studio, Banyard. Menu drops five dark strips one after another, each landing
         with a rounded edge that squares off; the links rise out of their masks, and pointing at one dims the others
         and brings its small drawn preview alongside. Close lifts the strips back up in reverse -->
    <header class="testa">
      <a class="marchio" href="#" aria-label="Banyard">
        <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="3.5" width="7" height="17" rx="1.2"/><rect x="13.5" y="3.5" width="7" height="7" rx="3.5"/><rect x="13.5" y="13.5" width="7" height="7" rx="1.2"/></svg>
        <span class="marchio__nome">Banyard</span>
      </a>
      <button class="apri" type="button" aria-expanded="false" aria-controls="menu" data-apri>
        <span class="apri__parole" aria-hidden="true">
          <span class="apri__parola" data-parola-menu>Menu</span>
          <span class="apri__parola apri__parola--chiudi" data-parola-chiudi>Close</span>
        </span>
        <span class="sr">Open the menu</span>
        <svg class="apri__icona" viewBox="0 0 24 24" aria-hidden="true"><path class="apri__riga" data-riga-a d="M5 9h14"/><path class="apri__riga" data-riga-b d="M5 15h14"/></svg>
      </button>
    </header>

    <section class="pagina" data-pagina>
      <p class="pagina__etichetta">Brand and spatial design</p>
      <h1 class="pagina__titolo">We make quiet brands<br>easy to remember.</h1>
      <p class="pagina__testo">Identities, packaging and rooms for small companies that would rather be felt than shouted.</p>
    </section>

    <div class="strisce" aria-hidden="true" data-strisce></div>

    <nav class="menu" id="menu" aria-label="Main" data-menu hidden>
      <ul class="menu__voci" data-voci>
        <li class="voce" data-voce="work"><a href="#"><span class="voce__maschera"><span class="voce__parola" data-parola>Work</span></span></a></li>
        <li class="voce" data-voce="studio"><a href="#"><span class="voce__maschera"><span class="voce__parola" data-parola>Studio</span></span></a></li>
        <li class="voce" data-voce="services"><a href="#"><span class="voce__maschera"><span class="voce__parola" data-parola>Services</span></span></a></li>
        <li class="voce" data-voce="journal"><a href="#"><span class="voce__maschera"><span class="voce__parola" data-parola>Journal</span></span></a></li>
        <li class="voce" data-voce="contact"><a href="#"><span class="voce__maschera"><span class="voce__parola" data-parola>Contact</span></span></a></li>
      </ul>

      <!-- the small drawn preview that comes alongside the link under the pointer -->
      <div class="anteprima" data-anteprima aria-hidden="true">
        <div class="anteprima__finestra">
          <div class="anteprima__nastro" data-nastro>
            <svg class="anteprima__disegno" viewBox="0 0 120 90" data-di="work"><rect width="120" height="90" fill="#2a2620"/><rect x="14" y="16" width="40" height="58" rx="3" fill="#e8dfd0"/><rect x="62" y="16" width="44" height="26" rx="3" fill="#c9b9a2"/><rect x="62" y="48" width="44" height="26" rx="3" fill="var(--accento)"/><path d="M22 60h24M22 66h16" stroke="#2a2620" stroke-width="2.4" stroke-linecap="round"/></svg>
            <svg class="anteprima__disegno" viewBox="0 0 120 90" data-di="studio"><rect width="120" height="90" fill="#e8dfd0"/><path d="M0 64h120" stroke="#b9ab95" stroke-width="1.5"/><rect x="18" y="26" width="30" height="38" fill="#cdbfa9"/><path d="M33 26v38" stroke="#e8dfd0" stroke-width="1.5"/><circle cx="84" cy="44" r="14" fill="var(--accento)"/><rect x="70" y="58" width="28" height="6" rx="2" fill="#2a2620"/><path d="M60 64v14M108 64v14" stroke="#2a2620" stroke-width="2"/></svg>
            <svg class="anteprima__disegno" viewBox="0 0 120 90" data-di="services"><rect width="120" height="90" fill="#f4f1ea"/><circle cx="36" cy="45" r="20" fill="none" stroke="#2a2620" stroke-width="2"/><rect x="62" y="25" width="40" height="40" rx="6" fill="var(--accento)"/><path d="M28 45h16M36 37v16" stroke="#2a2620" stroke-width="2" stroke-linecap="round"/></svg>
            <svg class="anteprima__disegno" viewBox="0 0 120 90" data-di="journal"><rect width="120" height="90" fill="#d9cfbf"/><rect x="24" y="12" width="72" height="66" rx="2" fill="#f4f1ea"/><path d="M34 26h40M34 34h52M34 42h46M34 50h52M34 58h30" stroke="#2a2620" stroke-width="2" stroke-linecap="round" opacity=".75"/><rect x="34" y="64" width="18" height="6" rx="1.5" fill="var(--accento)"/></svg>
            <svg class="anteprima__disegno" viewBox="0 0 120 90" data-di="contact"><rect width="120" height="90" fill="#2a2620"/><rect x="22" y="24" width="76" height="44" rx="4" fill="#f4f1ea"/><path d="M22 28l38 24 38-24" fill="none" stroke="#2a2620" stroke-width="2.2" stroke-linejoin="round"/><circle cx="92" cy="26" r="7" fill="var(--accento)"/></svg>
          </div>
        </div>
        <p class="anteprima__didascalia" data-didascalia>Selected projects, 2019 to now</p>
      </div>

      <div class="menu__piede" data-piede>
        <span class="menu__info">hello@banyard.studio</span>
        <span class="menu__info menu__social"><a href="#">Instagram</a><a href="#">Behance</a></span>
      </div>
    </nav>

    <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></svg>
  </main>

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

31 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 “Strip menu” 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 white background there is the home of Banyard, a made-up design studio: at the top the mark made of three rectangles, one orange, and the Menu pill with its two lines; in the middle a big headline, «We make quiet brands easy to remember.», with a line below. Press Menu and the word rolls to Close while the two lines cross into an X with a small spring. Meanwhile five dark strips drop from the top one after another: each falls with a rounded lower edge, lands with a small bounce and the edge squares off just as it settles, until the page is covered and the header turns light. Then the five links (Work, Studio, Services, Journal, Contact), big and in a variable typeface, rise out of their masks one after another widening along the width axis, and at the bottom the address and the two socials appear. Point at a link and the others dim, it widens and gains weight, and its preview comes alongside: a small window with a drawing (the projects, the studio table, the services, a journal page, an envelope) and a line below; moving to another link the preview slides to its height with a tilt that straightens, and inside the new drawing rises while the old one leaves upwards. Close drops the links, and the strips go back up in reverse starting from the right, rounding again as they lift. A drawn pointer opens the menu, passes over three links and closes it again.

How it works

The strips built from the knob

The strips are spans in a flex row, as many as STRIPS, 112 percent tall and aligned to the bottom: they stick out above the stage, so the small bounce on arrival never uncovers the page. They start at yPercent -101 and drop to 0 with back.out, one after another, STAGGER seconds apart.

The rounded edge that squares off

Each strip starts with its two lower corners rounded by ROUND pixels. A second tween, starting a third of the way down and ending when the strip lands, takes the radii to zero with power2.in: the edge stays round while it falls and squares off only at the end, like a drop settling.

The links out of their masks

Each link sits in a mask with overflow hidden and rises from yPercent 112 to 0 with expo.out; at the same time the CSS variable --w, used in font-variation-settings, goes from 82 to 100, so the word widens as it rises. On hover --w goes to 120 and --p, the weight, to 700, while the other links drop to the DIM opacity.

The preview beside the link

The preview lives in the second column of the menu grid: the link under the pointer is measured and the preview is brought to its height with gsap.quickTo, kept inside the menu. Inside, the five drawings are stacked: the new one rises from yPercent 100 and the old one leaves to -100, and the change of height adds a tilt that springs back with elastic.out.

The way back in reverse

On close the links leave upwards in reverse order, then the strips go back up starting from the last one, with power3.inOut, and their corners round again as they lift. The header turns dark again halfway through, once the strips have left it.

Values to change

NameFileDefaultWhat it changes
STRIPSscript.js5How many strips drop to cover the page.
DROPscript.js0.78The seconds each strip takes to drop.
STAGGERscript.js0.07The seconds between one strip and the next.
ROUNDscript.js64How round the strip’s lower edge is while it falls, in pixels.
DIMscript.js0.22How lit the other links stay when you point at one.
ACCENTscript.js#e4572eThe accent colour.
HOLDscript.js1.1The seconds the drawn pointer stays on a link.

Try them in the Playground

When to use it

For the menu of a studio, an agency or a portfolio: whoever opens the menu sees the page covered like a curtain in strips, and the previews tell what is behind each link before clicking.

On phones

The same animation with adapted sizes: the links shrink with the box, the preview stays alongside but smaller, and the menu opens and closes with a finger on the same button.

With reduced motion

No falls and no movement: the strips and the menu fade in already in place, the links are already up, and on hover only the opacity, the width and the preview drawing change.

Pitfalls

  • back.out’s bounce takes the strip slightly past its place: if the strip were as tall as the stage, the page would show at the top for a moment. That is why the strips are taller and stick out above.
  • A thin line of page can appear between two side-by-side strips, where the edges fall on half pixels: each strip overlaps the next by one pixel.
  • The width and weight of the links change through CSS variables inside font-variation-settings and font-weight: GSAP animates the variables and the variable font does the rest without relaying the text.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 27 October 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