Skip to content
animorio
IT
All components

Gym signup wizard

Forms, Transitions, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The signup of Ridgeline Climbing, a made-up climbing gym, in four steps inside a white premium card: about you, the plan, the start day, the review. The idea: every finished step leaves its answer in the step bar on top, rolling up in place of the step’s name with a small green tick, so the bar becomes the summary as you go, and tapping a finished step takes you back to it. Steps change on a fine spring while the card takes the new height, a wrong email shakes its field and says why, the right one draws its tick. Confirmed, the bar fills, a light runs round the edge and the welcome draws its tick.

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>
<!--
  "Gym signup wizard" 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 gym signup form wizard with the answers that stay in the stepper</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 membership signup of Ridgeline, an invented climbing gym: four steps in one card. Every step you finish
         leaves its answer in the step bar on top, so the bar becomes the summary as you go -->
    <form class="wz" data-card aria-labelledby="wz-title" novalidate>
      <span class="wz__glow" aria-hidden="true"></span>
      <header class="wz__head">
        <span class="wz__logo" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M3.5 18.5 9.2 8.6l3.1 5.2 2.4-3.9 5.8 8.6z"/><path class="wz__logo-snow" d="M7.7 11.2 9.2 8.6l1.5 2.5"/></svg>
        </span>
        <span class="wz__meta">
          <span class="wz__brand">Ridgeline Climbing</span>
          <span class="wz__title" id="wz-title">Become a member</span>
        </span>
        <span class="wz__time"><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.6"/><path d="M8 5v3.2l2 1.3"/></svg><span>About 1 min</span></span>
      </header>

      <!-- the step bar: each segment shows the name of the step, then the answer you gave -->
      <ol class="bar" data-bar aria-label="Steps">
        <li class="seg" data-seg><button type="button" class="seg__btn" tabindex="-1" data-seg-btn>
          <span class="seg__line"><span class="seg__fill" data-fill></span><span class="seg__sheen"></span></span>
          <span class="seg__text"><span class="seg__name">You</span><span class="seg__ans"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.6 6.3 4.9 8.5 9.4 3.6"/></svg><span data-ans></span></span></span>
        </button></li>
        <li class="seg" data-seg><button type="button" class="seg__btn" tabindex="-1" data-seg-btn>
          <span class="seg__line"><span class="seg__fill" data-fill></span><span class="seg__sheen"></span></span>
          <span class="seg__text"><span class="seg__name">Plan</span><span class="seg__ans"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.6 6.3 4.9 8.5 9.4 3.6"/></svg><span data-ans></span></span></span>
        </button></li>
        <li class="seg" data-seg><button type="button" class="seg__btn" tabindex="-1" data-seg-btn>
          <span class="seg__line"><span class="seg__fill" data-fill></span><span class="seg__sheen"></span></span>
          <span class="seg__text"><span class="seg__name">Start</span><span class="seg__ans"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.6 6.3 4.9 8.5 9.4 3.6"/></svg><span data-ans></span></span></span>
        </button></li>
        <li class="seg" data-seg><button type="button" class="seg__btn" tabindex="-1" data-seg-btn>
          <span class="seg__line"><span class="seg__fill" data-fill></span><span class="seg__sheen"></span></span>
          <span class="seg__text"><span class="seg__name">Review</span><span class="seg__ans"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.6 6.3 4.9 8.5 9.4 3.6"/></svg><span data-ans>Joined</span></span></span>
        </button></li>
      </ol>

      <div class="wz__body" data-body>
        <!-- about you -->
        <fieldset class="panel" data-panel>
          <legend class="panel__q">Tell us about you</legend>
          <label class="field" data-field="name">
            <span class="field__label">Full name</span>
            <span class="field__box">
              <input class="field__input" type="text" autocomplete="name" placeholder="Ana Ruiz" data-input="name">
              <svg class="field__ok" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.4"/><path d="M5.2 8.3 7.1 10.1 10.9 6"/></svg>
            </span>
          </label>
          <label class="field" data-field="email">
            <span class="field__label">Email</span>
            <span class="field__box">
              <input class="field__input" type="email" autocomplete="email" inputmode="email" placeholder="you@example.com" data-input="email" aria-describedby="wz-err">
              <svg class="field__ok" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.4"/><path d="M5.2 8.3 7.1 10.1 10.9 6"/></svg>
            </span>
            <span class="field__err" id="wz-err" data-err><span class="field__err-in"><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.2"/><path d="M8 4.8v3.6M8 10.9v.1"/></svg><span data-err-text>Enter a full email, like name@example.com</span></span></span>
          </label>
        </fieldset>

        <!-- the plan -->
        <fieldset class="panel" data-panel>
          <legend class="panel__q"><span>Choose a plan</span><span class="panel__note">Cancel anytime</span></legend>
          <div class="plans" role="radiogroup" aria-label="Plan">
            <button class="plan" type="button" role="radio" aria-checked="false" data-plan="Off-peak" data-price="39" data-per="mo">
              <span class="plan__radio" aria-hidden="true"><svg viewBox="0 0 14 14"><path d="M3.6 7.2 6 9.5 10.5 4.7"/></svg></span>
              <span class="plan__txt"><span class="plan__name">Off-peak</span><span class="plan__sub">Weekdays before 4 pm</span></span>
              <span class="plan__price">£39<small>/mo</small></span>
            </button>
            <button class="plan" type="button" role="radio" aria-checked="false" data-plan="Unlimited" data-price="59" data-per="mo">
              <span class="plan__radio" aria-hidden="true"><svg viewBox="0 0 14 14"><path d="M3.6 7.2 6 9.5 10.5 4.7"/></svg></span>
              <span class="plan__txt"><span class="plan__name">Unlimited <span class="plan__tag">Popular</span></span><span class="plan__sub">Any time, gear hire included</span></span>
              <span class="plan__price">£59<small>/mo</small></span>
            </button>
            <button class="plan" type="button" role="radio" aria-checked="false" data-plan="Annual" data-price="590" data-per="yr">
              <span class="plan__radio" aria-hidden="true"><svg viewBox="0 0 14 14"><path d="M3.6 7.2 6 9.5 10.5 4.7"/></svg></span>
              <span class="plan__txt"><span class="plan__name">Annual</span><span class="plan__sub">Two months free</span></span>
              <span class="plan__price">£590<small>/yr</small></span>
            </button>
          </div>
        </fieldset>

        <!-- the start -->
        <fieldset class="panel" data-panel>
          <legend class="panel__q"><span>When do you start?</span><span class="panel__note">November</span></legend>
          <div class="days" role="radiogroup" aria-label="Start day" data-days></div>
          <button class="check" type="button" role="checkbox" aria-checked="false" data-induct>
            <span class="check__box" aria-hidden="true"><svg viewBox="0 0 14 14"><path d="M3.2 7.3 5.8 9.8 10.9 4.4"/></svg></span>
            <span class="check__txt"><span class="check__name">Book a free induction</span><span class="check__sub">45 min with a coach on your first visit</span></span>
          </button>
        </fieldset>

        <!-- the review -->
        <section class="panel panel--review" data-panel aria-live="polite">
          <p class="panel__q">Check and confirm</p>
          <dl class="rows">
            <div class="row" data-row="0"><dt>Member</dt><dd data-r-name>Ana Ruiz</dd><button type="button" class="row__edit" data-edit>Edit</button></div>
            <div class="row" data-row="1"><dt>Plan</dt><dd data-r-plan>Unlimited · £59/mo</dd><button type="button" class="row__edit" data-edit>Edit</button></div>
            <div class="row" data-row="2"><dt>Starts</dt><dd data-r-start>Mon 23 Nov</dd><button type="button" class="row__edit" data-edit>Edit</button></div>
          </dl>
          <div class="due"><span>Due today</span><strong>£<span data-due>59</span></strong></div>
        </section>

        <!-- welcome -->
        <section class="panel panel--done" data-panel aria-live="polite">
          <svg class="done__mark" viewBox="0 0 64 64" aria-hidden="true">
            <circle class="done__halo" cx="32" cy="32" r="30"/>
            <circle class="done__ring" cx="32" cy="32" r="22"/>
            <path class="done__tick" d="M22.5 32.8 29 39.2 42 25.4"/>
          </svg>
          <h2 class="done__title">You're in, <span data-d-name>Ana</span></h2>
          <p class="done__sub">Member <strong data-d-ref>RL-20841</strong> · show it at the desk</p>
        </section>
      </div>

      <div class="acts">
        <button class="back" type="button" data-back aria-label="Back">
          <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M11.5 5.5 7 10l4.5 4.5"/></svg>
          <span>Back</span>
        </button>
        <button class="cta" type="button" data-cta>
          <span class="cta__bg" aria-hidden="true"></span>
          <span class="cta__label" data-cta-label>Continue</span>
          <svg class="cta__arrow" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10h9.5M10.5 5.5 15 10l-4.5 4.5"/></svg>
          <svg class="cta__spin" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.5"/></svg>
        </button>
      </div>
    </form>
    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

71 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 “Gym signup wizard” 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 white ground there is only the signup card: on top the gym’s dark mark, Ridgeline Climbing, Become a member and About 1 min; below, the step bar in four thin strokes, You, Plan, Start and Review. The first step asks for the name and the email: as you type the step’s stroke fills halfway for each right field and a green tick draws itself next to the field. With a half email, Continue shakes the field, the border turns red and the line that explains opens below; once the email is finished the line closes and the tick comes back. Going on, the step leaves to the left slightly blurred, the new one comes in from the right on a fine spring with its rows one after the other, the card takes the new height and Back appears beside the button. In the bar, the finished step’s name rolls away and the answer rolls up in its place, Ana Ruiz, then Unlimited, then Thu 19, with a tick that draws itself and a glint running along the stroke. In the plan the choice lights up in blue with the round filling and its tick; in the start day the date turns black and the induction box ticks. The review shows the three rows with Edit and the total counting up to £59; the button turns blue, Confirm and join spins and the card says You’re in, Ana with the member number, while the bar fills completely, a green light runs round the edge and the welcome tick draws itself. Left alone, a drawn pointer does the whole round, gets the email wrong once and starts again.

How it works

Steps on top of each other

The four panels and the welcome are all absolutely placed in the same container; only the current one is visible, and GSAP gives the container the height of the incoming panel, so the card grows or shrinks along with the change.

The change on a spring

The outgoing panel moves sideways and blurs by 3 pixels; the incoming one arrives from the other side with back.out, which takes it one pixel past and back, and its rows rise staggered. Back swaps the sides.

The answer in the bar

Each stroke has two lines in the same 16 pixel box: the step’s name and the answer. When the step is done the name rolls away and the answer rolls up from below with a small elastic, the tick draws by its stroke and a glint crosses the line. The current step’s stroke fills with how complete it is.

The wrong email

The field is checked as you type with a simple rule; Continue with a half email turns the border red, shakes the box with damped keyframes and opens the error line by animating its height to auto. As soon as the email is right the line closes and the green tick draws.

The confirmation

The button shows the spinner, the Review stroke fills almost all the way, then the welcome comes in: the halo and the green circle swell, the tick draws, and a masked conic-gradient on the edge runs round the card by animating a CSS variable.

Values to change

NameFileDefaultWhat it changes
STEP_TIMEscript.js0.5How many seconds a step takes to leave and the next to come in.
SPRINGscript.js1.4How far the incoming step overshoots before it settles (0 none).
SLIDEscript.js34How many pixels the steps slide sideways when they change.
SHAKEscript.js6How many pixels the field shakes with a wrong email (0 still).
TYPE_SPEEDscript.js14How many letters per second the pilot types.
HOLDscript.js3How many seconds the pilot stays on the welcome.
SPEEDscript.js1The pilot’s speed (2 twice as fast, 0.5 half).
LOOPscript.jstrueLeft alone, the pilot signs up again from the start.

Try them in the Playground

When to use it

In the signup of a gym, a course, a yoga or language school, a service or app subscription, the onboarding of a product: anywhere a long form is split into a few steps and whoever fills it in wants to see what they have already chosen.

On phones

The card narrows to 92 vw and the heights of fields, plans, days and buttons use clamp with vh, so it fits the phone box; answers too long for the bar end with an ellipsis, and below 470 pixels of height the secondary lines disappear.

With reduced motion

No slides, blurs, shakes or springs: the steps change with a fade, the answers appear in place in the bar, the ticks appear already drawn and the total is already written. The drawn pointer is not shown, the demo still repeats.

Pitfalls

  • The answer line in the bar was hidden with translateY(100%) in the CSS: GSAP reads it back as 16 pixels and with yPercent 0 the answer stayed below, invisible. Now only GSAP sets the starting position, with yPercent 100.
  • With all panels absolute the container has no height: the incoming panel’s height must be measured and given back on every resize and while the error line opens or closes.
  • The Back button starts zero wide with zero margin: with the row’s gap the main button stayed 8 pixels off, so the space is a margin animated together with the width.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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