Skip to content
animorio
IT
All components

Cellar tasting form

Forms, Transitions, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The booking form of the tasting at an invented winery, Valdora Estate, in a dark premium card like a Dribbble shot: on top the real photo of the barrels under the vault, then the day in a row of dates and the time in pills, with a wine red pill sliding on a spring behind the choice; the guests on a rolling counter, with a glass that fills for each guest, and the total rolling digit by digit. Book tasting sends and confirms with a drawn gold check.

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>
<!--
  "Cellar tasting form" 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 tasting booking form with the guests and the rolling price</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">
    <!-- the booking card of a winery's cellar tasting: a real photo of the barrels on top, then the day in a row of
         dates, the time in pills, the guests on a spring counter with a glass for each guest, and the total that rolls
         its digits. Book tasting sends, then confirms with a check drawn in SVG -->
    <form class="book" data-book aria-label="Book a cellar tasting" novalidate>
      <span class="book__halo" aria-hidden="true"></span>
      <div class="book__card" data-card>

        <figure class="photo">
          <div class="photo__move" data-photo>
            <img class="photo__img" src="cantina.webp" width="1024" height="683" alt="Rows of oak barrels under the vaulted ceiling of the cellar" draggable="false">
          </div>
          <span class="photo__shade" aria-hidden="true"></span>
          <span class="photo__sheen" data-sheen aria-hidden="true"></span>
          <figcaption class="photo__cap">
            <span class="chip">
              <svg class="chip__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M5 1.8h6c.2 2.6-.4 5.3-3 5.6-2.6-.3-3.2-3-3-5.6zM8 7.4v5.4M5.4 13.6h5.2"/></svg>
              <span data-kind>Cellar tasting</span>
            </span>
            <span class="photo__title" data-winery>Valdora Estate</span>
            <span class="photo__sub" data-sub>Five wines from the barrel, 90 min</span>
          </figcaption>
        </figure>

        <div class="body">
          <div class="head">
            <span class="label" id="l-date">Date</span>
            <span class="hint">November</span>
          </div>
          <div class="pick pick--days" role="radiogroup" aria-labelledby="l-date" data-days>
            <span class="pick__pill" data-pill aria-hidden="true"><span class="pick__pill-in" data-pill-in></span></span>
            <button class="day" type="button" role="radio" aria-checked="true" data-opt><span class="day__wd">Thu</span><span class="day__n">12</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" data-opt><span class="day__wd">Fri</span><span class="day__n">13</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" data-opt><span class="day__wd">Sat</span><span class="day__n">14</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" data-opt><span class="day__wd">Sun</span><span class="day__n">15</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" aria-disabled="true" disabled data-opt><span class="day__wd">Mon</span><span class="day__n">16</span><span class="day__off">Closed</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" data-opt><span class="day__wd">Tue</span><span class="day__n">17</span></button>
            <button class="day" type="button" role="radio" aria-checked="false" data-opt><span class="day__wd">Wed</span><span class="day__n">18</span></button>
          </div>

          <div class="head">
            <span class="label" id="l-time">Time</span>
            <span class="hint">Cellar door, 90 min</span>
          </div>
          <div class="pick pick--times" role="radiogroup" aria-labelledby="l-time" data-times>
            <span class="pick__pill" data-pill aria-hidden="true"><span class="pick__pill-in" data-pill-in></span></span>
            <button class="slot" type="button" role="radio" aria-checked="true" data-opt>11:00</button>
            <button class="slot" type="button" role="radio" aria-checked="false" data-opt>13:30</button>
            <button class="slot" type="button" role="radio" aria-checked="false" data-opt>16:00</button>
            <button class="slot" type="button" role="radio" aria-checked="false" data-opt>18:30<span class="slot__left">2 left</span></button>
          </div>

          <div class="guests">
            <div class="guests__text">
              <span class="label" id="l-guests">Guests</span>
              <span class="glasses" data-glasses aria-hidden="true"></span>
            </div>
            <div class="step" role="group" aria-labelledby="l-guests">
              <button class="step__btn" type="button" aria-label="One guest less" data-minus>
                <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9"/></svg>
              </button>
              <span class="step__num" aria-live="polite" data-guests-out><span class="roll" data-guests></span></span>
              <button class="step__btn" type="button" aria-label="One guest more" data-plus>
                <svg viewBox="0 0 16 16" aria-hidden="true"><path class="step__v" d="M8 3.5v9"/><path d="M3.5 8h9"/></svg>
              </button>
            </div>
          </div>

          <span class="rule" aria-hidden="true"></span>

          <div class="total">
            <span class="total__left">
              <span class="label">Total</span>
              <span class="total__each" data-each>€45 per guest</span>
            </span>
            <span class="total__price" data-price aria-live="polite"><span class="total__cur" data-cur>€</span><span class="total__digits" data-digits></span></span>
          </div>

          <button class="go" type="submit" data-go>
            <span class="go__face" data-face>
              <span class="go__sweep" data-sweep aria-hidden="true"></span>
              <span class="go__bar" data-bar aria-hidden="true"></span>
              <span class="go__words">
                <span class="go__word" data-word="idle">Book tasting</span>
                <span class="go__word" data-word="busy" aria-hidden="true">Booking</span>
                <span class="go__word" data-word="done" aria-hidden="true">Booked</span>
              </span>
              <svg class="go__icon" viewBox="0 0 20 20" aria-hidden="true">
                <path class="go__arrow" data-arrow d="M4 10h11M11 5.6L15.4 10 11 14.4"/>
                <circle class="go__spin" data-spin cx="10" cy="10" r="6.2" pathLength="1"/>
                <path class="go__check" data-check pathLength="1" d="M4.6 10.4l3.6 3.5 7.2-7.6"/>
              </svg>
            </span>
            <span class="go__ring" data-ring aria-hidden="true"></span>
          </button>
          <p class="note" aria-live="polite"><span class="note__a" data-note-a>Free cancellation up to 24 hours before</span><span class="note__b" data-note-b>Confirmed for Thu 12 Nov at 11:00</span></p>
        </div>
      </div>
    </form>
  </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.

53 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 “Cellar tasting form” 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 black page sits the booking card of Valdora Estate, dark and warm, with a one pixel edge catching the light at the top, a very fine grain and a wine coloured glow below. On top the real photo of a cellar: rows of oak barrels under a vault, with the lamps on, slowly pulling back; over it, a frosted glass label with a gold wine glass and Cellar tasting, the winery’s name and Five wines from the barrel, 90 min. Below, the row of days from Thursday 12 to Wednesday 18 November (Monday is closed, its number struck through) and four times in pills, the last with 2 left in gold. Behind the chosen day and time sits a wine red pill: when the choice changes it slides on a spring, stretches a little in the direction it goes and settles with one pixel too many, and the chosen cell gives a hair and comes back. Then the guests: a counter with minus and plus, the number on a drum, and on the left a row of small glasses, one per place, that fill with wine and hop for a moment for each new guest. The total, guests times 45 euros, rolls digit by digit, each drum a moment after the one on its right, and the hundreds digit opens up when needed. Book tasting: the button gives, the arrow leaves, a gold arc turns, a thin line runs along the bottom of the button and a light sweeps over it; then the words roll to Booked, a gold check draws itself, a gold outline opens once around the button, a light passes over the photo and below appears the confirmation with the day and time. On its own the card fills itself in and starts over; touched, it stops and is used by hand.

How it works

Everything in card units

The card is min(420px, 90vw, 71vh) wide and every size is a share of that width (--u, one four hundred and twentieth): photo, cells, pills and words stay in proportion from the phone box to a wide screen, and the vh limit always keeps it all inside the window.

One pill behind the choice

Each row of choices (days and times) has a single pill, absolute behind the cells: GSAP gives it the x and width of the chosen cell, measured with offsetLeft and offsetWidth and measured again on resize. The ease is a true spring written as a function, a damped oscillator that settles exactly at the end of the tween. The pill’s child stretches for a sixth of a second towards where it goes and comes back on the same spring.

Drums for the guests and the total

Each number is a window one line tall, with a soft mask above and below, over a column of values built by the script: to change value the column slides by yPercent. The total has as many drums as the largest total has digits; each drum starts five hundredths after the one on its right, and the ones not needed close up through a CSS variable --on that shrinks their width and opacity.

The glasses that fill

One SVG glass per place: the wine is a rectangle clipped by the shape of the bowl with a clipPath, and GSAP raises its y attribute when the guest is there; the glass hops three pixels and straightens, as if just set down.

The button in three states

Idle, busy and done are three words stacked in the same grid cell, coming in blurred from below and leaving upwards. In busy an SVG arc with stroke-dasharray turns, a scaleX line runs along the bottom and a light sweeps over the button; in done the check draws itself with stroke-dashoffset from 1 to 0 (pathLength 1), the button swells by 3.5% and a gold outline widens and fades, once.

The pilot that stops on touch

A GSAP timeline does the round by itself: day, time, two guests, Book tasting, wait, back to the start, and again. The first real pointerdown, key or wheel on the card kills it and the card belongs to whoever uses it; changing something after the confirmation brings the button back to Book tasting.

Values to change

NameFileDefaultWhat it changes
WINERYscript.jsValdora EstateThe winery’s name on the photo.
PRICEscript.js45The price of the tasting per guest.
CURRENCYscript.js€The currency sign before the total.
GUESTSscript.js2The guests at the start.
MAX_GUESTSscript.js8The most guests in one booking, and the glasses in the row.
SPRINGscript.js1How springy pills and drums are: 0.4 calm, 2 very bouncy.
SENDscript.js1.6How many seconds the booking takes to go through.
HOLDscript.js2.8How many seconds the confirmation stays before the card starts over.
AUTOscript.jstrueThe card fills itself in until someone touches it.

Try them in the Playground

When to use it

For the site of a winery, a farm, an olive mill or a brewery that runs tours and tastings; for a restaurant with themed evenings, a cooking school, a guided tour, a spa or a hotel selling experiences: the whole booking in one card, with the price visibly changing while you choose.

On phones

On the phone the card is 90% of the screen wide and everything shrinks in proportion; days, times, plus and minus and the button are tapped with a finger and the press squashes them by a hair. The rest is the same.

With reduced motion

Nothing moves: the pill jumps to the new choice and lights up again with a fade, the numbers change in place, the glasses fill without hopping, the photo stays still, and the button goes from Book tasting to Booking to Booked with fades, the arc still and the check already drawn.

Pitfalls

  • With the total’s digits in tabular-nums, Mona Sans shows a slashed zero: each digit sits in a centred slot 0.6 em wide, with proportional digits.
  • The pill was measured before the font had loaded and stayed narrower than its cell: it is measured again on document.fonts.ready, on load and on every resize.
  • The same scale served the pressed button and the button swelling on confirmation, and they cancelled each other: the press sits on the button, the swell on the face inside.
  • The round started when the script was read and the poster landed on different moments: it starts from the load event.

Libraries

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.

Testing

Tested on 6 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 components