Skip to content
animorio
IT
All components

Law firm intake form

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

The «Request a consultation» form of an invented law firm, on white: you pick the area, Family, Employment, Property or Business, and the ink slides behind your choice with a small spring; the questions underneath leave and the new ones come in, while the card stretches or shortens with a bounce. You type, pick an answer and a day, and on click the form leaves and a wax seal comes down and presses with its ripple: «Request sent».

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>
<!--
  "Law firm intake 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 law firm consultation form whose questions change with the practice area</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz-italic.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- a law firm's consultation request: pick the practice area and the questions underneath change (the old ones
         leave, then the new ones come in while the height springs), pick a day, send; the request is sealed in wax -->
    <section class="card" data-card aria-label="Request a consultation">
      <div class="card__in" data-card-in>

        <form class="form" data-form novalidate>
          <header class="head" data-reveal>
            <p class="firm"><svg class="firm__mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v18M6 21h12M4 8h16M12 5l-1 3h2zM4 8l-2.5 6h5zM20 8l-2.5 6h5z"></path><path d="M1.5 14a2.5 1.4 0 0 0 5 0M17.5 14a2.5 1.4 0 0 0 5 0"></path></svg><span data-firm>Wren &amp; Ashcombe</span></p>
            <h1 class="title">Request a <em>consultation</em></h1>
            <p class="sub">Confidential. A partner replies within one working day.</p>
          </header>

          <fieldset class="block" data-reveal>
            <legend class="label">Practice area</legend>
            <div class="areas" role="radiogroup" aria-label="Practice area" data-areas>
              <span class="areas__ink" data-ink aria-hidden="true"></span>
              <button type="button" class="area" role="radio" aria-checked="true" data-area="family">Family</button>
              <button type="button" class="area" role="radio" aria-checked="false" data-area="employment">Employment</button>
              <button type="button" class="area" role="radio" aria-checked="false" data-area="property">Property</button>
              <button type="button" class="area" role="radio" aria-checked="false" data-area="business">Business</button>
            </div>
          </fieldset>

          <div class="qs" data-qs aria-live="polite">
            <div class="qs__in" data-qs-in></div>
          </div>

          <fieldset class="block" data-reveal>
            <legend class="label">Preferred day <span class="label__soft">· morning</span></legend>
            <div class="days" role="radiogroup" aria-label="Preferred day" data-days></div>
          </fieldset>

          <button class="send" type="submit" data-send>
            <span class="send__label" data-send-label>Request consultation</span>
            <svg class="send__spin" viewBox="0 0 24 24" aria-hidden="true" data-spin><circle cx="12" cy="12" r="8"></circle><path d="M12 4a8 8 0 0 1 8 8"></path></svg>
          </button>
        </form>

        <div class="done" data-done aria-hidden="true">
          <div class="seal" data-seal aria-hidden="true">
            <span class="seal__press" data-press></span>
            <svg class="seal__wax" viewBox="0 0 120 120" data-wax>
              <defs>
                <radialGradient id="cera" cx="38%" cy="32%" r="75%">
                  <stop offset="0" stop-color="var(--cera-luce)"></stop>
                  <stop offset="0.55" stop-color="var(--accento)"></stop>
                  <stop offset="1" stop-color="var(--cera-ombra)"></stop>
                </radialGradient>
              </defs>
              <path class="seal__blob" data-blob d=""></path>
              <circle class="seal__ring" cx="60" cy="60" r="34"></circle>
              <circle class="seal__ring seal__ring--in" cx="60" cy="60" r="29"></circle>
              <text class="seal__mono" x="60" y="68" text-anchor="middle" data-mono>W&amp;A</text>
              <path class="seal__shine" d="M36 44a30 30 0 0 1 22-14"></path>
            </svg>
          </div>
          <p class="done__title">Request <em>sent</em></p>
          <p class="done__line" data-done-line>Employment · Wed 5 Nov, morning</p>
          <p class="done__note">We’ll confirm the time by email.</p>
          <button class="again" type="button" data-again>New request</button>
        </div>

      </div>
    </section>
    <p class="sr" aria-live="polite" data-status></p>

    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3l14 8.2-6.2 1.4 3.6 6.8-2.6 1.4-3.6-6.8L5 18.6z"></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>

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.

33 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 “Law firm intake 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 white sits the card of Wren & Ashcombe, an invented law firm: the mark with its drawn scales, the title «Request a consultation» in a serif with «consultation» in burgundy italics, and below it the four areas in a row of pills, Family, Employment, Property and Business. Behind the chosen one is a dark ink: tap another and it slides there, stretching for a moment in the direction of travel, and settles. Meanwhile the questions change: the old ones rise away and fade, one after another, then the card stretches or shortens with a small spring and the new ones come in from below. Each area has its own, a text field with its icon and its placeholder, a row of answers as pills and sometimes a line of advice («Bring your contract and any letters»). At the bottom are the days of the week, with Monday already full, and the burgundy «Request consultation» button. On click the button squashes, its label rises away and a small arc spins; then the form leaves from the top and in its place, as the card changes height, a wax seal comes down with the firm’s initials: it presses, squashing slightly, leaves a ripple that spreads, the card gives a small jolt and «Request sent», the summary («Employment · Wed 5 Nov, morning») and «New request» arrive. A drawn pointer does it all by itself, a different area each round; you can also really use it.

How it works

The ink behind the choice

Behind the pills there is a single dark element, placed with the x, y, width and height of the chosen pill, read with getBoundingClientRect. When the choice changes it goes to the new rectangle with back.out and, at the same time, starts from a six-degree skewX towards the travel and a 0.9 scaleY that spring back: it looks like a drop sliding.

First out, then in

The old questions rise six pixels and fade in just over two tenths of a second, staggered; only then is the content replaced. The container’s height is locked in pixels: the new one is measured and reached with back.out, while the new pieces come in from below one after another. Two texts are never on top of each other.

The card that doesn’t jump

At start the questions of every area are built one at a time and the tallest card is measured; the card is placed where the tallest one would sit in the middle. So it only grows and shrinks downwards and the title never moves.

The seal

The edge of the wax is a path worked out once, a circle whose radius adds four waves of different frequency. It comes down with power3.in from 1.4 times its size and rotated, on impact it squashes in width and returns with elastic.out, while a thin ring spreads and fades and the card jolts by a pixel and a half. The wax has a radial gradient with tones worked out from the accent colour.

Values to change

NameFileDefaultWhat it changes
FIRMscript.jsWren & AshcombeThe name of the invented law firm, at the top of the card.
ACCENTscript.js#8a2a2bThe colour of the wax, the button and the choices.
MONOGRAMscript.jsW&AThe letters pressed into the seal.
SPRINGscript.js1.5How much the height bounces when the questions change.
SWAPscript.js0.22The seconds the old questions take to leave before the new ones.
STAMPscript.js0.32The seconds the seal takes to come down and press.
TYPE_SPEEDscript.js15The letters per second the autopilot types.
PAUSEscript.js1.2The seconds the autopilot waits between rounds.

Try them in the Playground

When to use it

For the site of a law firm, a notary, an accountant or any practice that gets different requests by area: the right questions for each one, without one very long form for everybody.

On phones

The card takes the width minus the margins, spacing and heights tighten with the screen height and, when it is short, the subtitle and the advice lines step aside. The real field uses 16-pixel text on touch screens, so Safari doesn’t zoom the page.

With reduced motion

No pointer, no springs and no falling seal: the form is already filled in for an employment question, and area changes and the confirmation arrive with a fade.

Pitfalls

  • With the card centred, every height change also moved it up and the title jiggled: now the tallest version of all is measured and the card stays where that one would sit in the middle.
  • Replacing the content before the old questions had left put two labels on top of each other for a moment: the swap sits at the end of the exit timeline.
  • A disabled button (the full Monday) doesn’t take the pilot’s click: the pilot only picks among the free days.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Newsreader (font variabile) 5.3.0.

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

Testing

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