
The inchworm menu
Menus, Hover, Transitions
The calendar for booking a night at an invented mountain hut, Valmora Hut, on white like a Dribbble shot. Under every day a row of thin lines tells how many beds are left; with the guest stepper at the top, each extra guest tints one more line pine green in every night, and the nights without room for the whole group go out in a cascade, crossed by a thin stroke that draws itself. The chosen day gets a green disc that lands with a bounce, the total rolls at the bottom and full nights push the tap back with a little shake.
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>
<!--
"Mountain hut calendar" 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 hut calendar with beds that go out for your group</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 night picker of an invented mountain hut: every day shows its free beds as thin bunk lines;
adding a guest tints one more line in every day, and the nights without room for the whole group go out in a cascade -->
<section class="hut" data-card aria-label="Valmora Hut, book a night">
<header class="hut__head">
<div class="hut__name">
<svg class="hut__peak" viewBox="0 0 28 18" aria-hidden="true"><path d="M1 17 9.5 5l3.6 5L18 3l9 14"></path><path class="hut__snow" d="M15.6 6.4 18 3l2.5 3.8"></path></svg>
<div>
<p class="hut__title">Valmora Hut</p>
<p class="hut__sub">2,410 m · half board</p>
</div>
</div>
<div class="guests" role="group" aria-label="Guests">
<button class="guests__btn" type="button" data-minus aria-label="One guest less"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9"></path></svg></button>
<p class="guests__val" aria-live="polite"><span class="guests__n" data-guests></span><span class="guests__l">guests</span></p>
<button class="guests__btn" type="button" data-plus aria-label="One guest more"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9M8 3.5v9"></path></svg></button>
</div>
</header>
<div class="cal">
<div class="cal__top">
<p class="cal__month" data-month></p>
<div class="cal__navs">
<button class="cal__nav" type="button" data-prev aria-label="Previous month"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3 5 8l5 5"></path></svg></button>
<button class="cal__nav" type="button" data-next aria-label="Next month"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m6 3 5 5-5 5"></path></svg></button>
</div>
</div>
<div class="cal__week" aria-hidden="true"><span>Mo</span><span>Tu</span><span>We</span><span>Th</span><span>Fr</span><span>Sa</span><span>Su</span></div>
<div class="cal__clip" data-clip></div>
</div>
<footer class="foot">
<div class="foot__info">
<p class="foot__date" data-date></p>
<p class="foot__sub" data-sub></p>
</div>
<p class="foot__total" data-total aria-live="polite"></p>
<button class="reserve" type="button" data-reserve disabled>
<span class="reserve__in">
<svg class="reserve__tick" viewBox="0 0 16 16" aria-hidden="true"><path d="m3.5 8.4 3 3 6-6.6" data-tick></path></svg>
<span class="reserve__txt" data-reserve-txt>Reserve</span>
</span>
</button>
</footer>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></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>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.
26 values to change
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 “Mountain hut calendar” from Animorio and fit it into my siteEvery day is a button with the number, a disc, a hover ring, a row of eight <i> and a thread. A single function, paintFit, reads the number of guests and gives each mark the class free (a free bed) or mine (a bed of the group); colours change with a CSS transition whose delay sits in a variable, --dl, written by the script day by day.
Each day’s delay is its distance from the stepper, which sits top right outside the grid (column 6.6, row -1.2), times CASCADE: so colour and thread move like a wave rolling down to the left. Nights that change state also get a GSAP timeline with the same delay: one pixel down (or up) and back with elastic.out.
The thread crossing a night is a child inside a parent rotated by -38 degrees in CSS: GSAP only scales the child along x, from the left when the night goes out and from the right when it comes back, and the CSS rotation is not wiped by the inline transform.
The disc drops from -8 pixels and half size in a fraction of LAND_TIME, squashes (scaleX 1.08, scaleY 0.92) for 70 milliseconds and settles with elastic.out. When the guests outnumber the beds of the chosen night, a timeline shakes it with x keyframes and then shrinks it away.
Date, guests and total are windows one line tall: the old line leaves upwards and the new one comes in letter by letter with back.out; the total rolls downwards when it drops. The new month enters column after column with a stagger computed from column and row, in the direction of the arrow.
| Name | File | Default | What it changes |
|---|---|---|---|
PRICE | script.js | 45 | The price of one bed for one night, half board, in euros. |
START_GUESTS | script.js | 2 | The guests when it opens. |
MAX_GUESTS | script.js | 8 | The most guests, also the number of bed marks. |
ACCENT | script.js | #2f6b50 | The green of the chosen night, the group and the button. |
CASCADE | script.js | 0.02 | The seconds between one day and the next when nights go out in a cascade. |
LAND_TIME | script.js | 0.55 | The seconds of the disc landing on the day. |
PAUSE | script.js | 1 | The seconds the autopilot waits between one gesture and the next. |
For booking a mountain hut, a hostel, a campsite or a group house, where how many places are left matters more than the price; and anywhere a date is picked for several people: a guided tour, a group dinner, a class, a hike.
The card takes the width of the box minus the margins; days are 26 to 46 pixels tall with 6.9vh, the grid always has six rows so months never change height, and everything else (stepper, button, gaps) shrinks with vh: the whole month fits even in the phone box. A tap does what a click does.
No springs, shakes or slides: the disc fades in, the thread over dimmed nights fades in, the new month and the lines change with a fade and the drawn pointer stays hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 7 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.