Skip to content
animorio
IT
All components

Human check box

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

The “I’m not a robot” box at the end of a form, with no puzzle to solve. On tap the square rounds off and turns into a spinning ring while the check runs; then the ring closes, the circle fills with teal, the tick draws, the shield on the right confirms with its own tick and a band of light crosses the box: “Verified”.

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>
<!--
  "Human check box" 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>Human check box</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 "I'm not a robot" box of a form: the square turns into a ring that checks,
         then closes into a filled tick while the shield on the right confirms -->
    <div class="hc" data-hc data-state="idle">
      <button class="hc__btn" type="button" role="checkbox" aria-checked="false" data-btn>
        <span class="hc__box" data-box aria-hidden="true">
          <svg class="hc__ring" data-spin viewBox="0 0 28 28"><circle data-ring cx="14" cy="14" r="11.500" pathLength="1"></circle></svg>
          <svg class="hc__tick" viewBox="0 0 28 28"><path data-tick d="M8.200 14.600l3.900 3.900 7.700-8.400" pathLength="1"></path></svg>
        </span>
        <span class="hc__text">
          <span class="hc__label"><span data-label>I’m not a robot</span></span>
          <span class="hc__sub" data-outsub>Tap the box to continue</span>
        </span>
      </button>
      <span class="hc__brand" aria-hidden="true">
        <svg viewBox="0 0 24 24"><path class="hc__shield" d="M12 2.800 19.200 5.600v5.600c0 4.600-2.900 8.300-7.200 10-4.300-1.700-7.200-5.400-7.200-10V5.600Z"></path><path class="hc__ok" data-ok d="M8.700 12.200l2.400 2.400 4.300-4.700" pathLength="1"></path></svg>
        <b>Palisade</b>
      </span>
      <span class="hc__shine" data-shine aria-hidden="true"></span>
    </div>
    <span class="live" aria-live="polite" data-live></span>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.

13 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Human check box” 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, a wide box with soft edges: on the left an empty white square, then “I’m not a robot” with “Tap the box to continue” below; on the right, past a thin line, the shield of whoever protects the form, with its name. Tap the box and the square tightens, bounces and rounds into a circle, its border gives way to a teal arc turning around its own centre, the label rolls to “Checking”. When the check is over the arc closes into a full ring, the circle fills with colour on a bounce and the white tick draws inside; the shield takes the colour, hops slightly and draws its own tick, a band of light crosses the box from left to right and the label becomes “Verified”. Left alone, after a few seconds the box goes back to empty and starts again.

How it works

A real checkbox

It is a button with role checkbox: aria-checked is false, mixed during the check and true at the end. The state is also in an attribute of the box, from which CSS takes colours and cursor.

From square to ring

GSAP takes the border radius from 8 to 14 pixels and lightens the border; on top an svg appears with a pathLength 1 circle, a little over a quarter of it visible, rotating whole around its centre, one turn every SPIN seconds.

The closing

After CHECK seconds the arc’s stroke-dashoffset goes to zero and the ring closes; then the background takes the colour, the tick draws, the shield does the same and a light band crosses the box with xPercent.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#0f9b8eThe colour of the checking ring and of the verified box.
CHECKscript.js1.7How many seconds the check lasts before Verified.
SPINscript.js0.8How many seconds the ring takes for one turn.

Try them in the Playground

When to use it

At the end of a sign-up, contact or login form, before the submit button; in a checkout after too many attempts, in a blog’s comments, in a poll open to everyone. The real check is done by the anti-bot service: this is its face.

On phones

The box is at most 308 pixels wide and narrows with the screen, 76 tall. The whole left part is tappable, not just the square; the shield on the right stays 72 pixels wide.

With reduced motion

The ring does not spin and nothing bounces: on tap the square becomes a circle with a still arc, and when the check is over it is already filled with its tick, like the shield. No light band. The demo’s pointer does not start.

Pitfalls

  • The ring’s whole svg rotates, so the pivot is transformOrigin 50% 50%: with svgOrigin on the svg the ring would travel in a circle instead of turning on itself.
  • During the check the box is not disabled: it ignores taps, says aria-busy and aria-checked mixed, and the outcome lands in an aria-live region.
  • GSAP animates the square’s background and shadow inline: to go back to the empty state they must be removed with clearProps, otherwise the CSS hover stops working.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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