Skip to content
animorio
IT
Back to the library

Email verification screen

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

The screen that confirms an account’s email, start to finish. You ask for the code, the six boxes open, the code arrives in a notification from the top and its digits fly one by one into the boxes; then the boxes close and the tile above is stamped into a green seal with a 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>
<!--
  "Email verification screen" 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>Email verification screen</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">
    <!-- an email verification screen: the code arrives in a notification, its digits fly into the six boxes,
         the boxes close into the tile above and the tile is stamped into a seal with a tick -->
    <section class="ev" data-ev aria-label="Email verification">
      <button class="note" type="button" data-note tabindex="-1" aria-label="Fill in the code from the notification">
        <span class="note__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4.500 7h15v10.500h-15ZM4.800 7.400 12 13l7.200-5.600"></path></svg></span>
        <span class="note__text"><b>Fieldnote</b><span>Your code is <i data-digits></i></span></span>
        <span class="note__fill" aria-hidden="true">Fill</span>
      </button>
      <span class="ev__tile" data-tile aria-hidden="true">
        <span class="ev__ripple" data-ripple></span>
        <span class="ev__face" data-face>
          <svg class="ev__mail" data-mail viewBox="0 0 24 24"><path d="M4.500 7h15v10.500h-15ZM4.800 7.400 12 13l7.200-5.600"></path></svg>
          <svg class="ev__tick" data-tick viewBox="0 0 24 24"><path d="M6 12.600 10.300 16.800 18 8"></path></svg>
        </span>
      </span>
      <div class="ev__copy">
        <h1 class="ev__roll ev__title"><span data-title>Confirm your email</span></h1>
        <p class="ev__text" data-text>We will send a six-digit code to <b>m•••@fieldnote.app</b></p>
      </div>
      <div class="ev__area" data-area>
        <label class="ev__code" data-codebox>
          <span class="ev__boxes" data-boxes aria-hidden="true"></span>
          <input class="ev__input" data-input type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" aria-label="Six-digit code" tabindex="-1">
        </label>
      </div>
      <button class="ev__btn" type="button" data-btn><span class="ev__roll"><span data-label>Send code</span></span></button>
      <span class="ev__say" data-say aria-live="polite"></span>
    </section>

    <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.

18 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 “Email verification screen” 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 warm grey, a white card: a tile with an envelope, “Confirm your email”, the half-hidden address and the dark “Send code” button. On press the card grows, six boxes come in one after the other, the title rolls to “Enter the code” and the button turns light, “Resend code”. A moment later a dark notification drops from the top on a spring: “Your code is 482 913” and a “Fill” key. Tap it and the six digits leave the notification and fly into the boxes one after the other, each with a small dip on landing, while the notification goes back up. With the last digit the boxes squeeze towards the middle and vanish, the card shortens and the tile above is stamped: it comes in big and tilted, settles into a green disc, the tick draws and a ring widens and fades. The title says “Email verified” and the button, green, “Continue”. The code can also be typed by hand into the real field: a wrong one makes the boxes shake in red and empties them.

How it works

Three states, one card

Ask, type, verified: one function sets title, text, button, tile and the height of the box area for each state. The card never changes page, it changes shape.

The digits really fly

Each digit in the notification is a span: its place is measured, a copy is made on the stage and sent to the middle of its box, with a soft horizontal axis and an accelerating vertical one, so the flight curves.

There is only one field

Under the six boxes sits one real, invisible input, numeric and with autocomplete one-time-code: the boxes show its value. So pasting, deleting and the phone’s autofill just work.

The seal is a stamp

The tile starts bigger and rotated and returns to size on an elastic spring; right after, the whole card jolts a few pixels and a ring leaves the disc. The tick draws with stroke-dashoffset.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#12a36aThe colour of the seal, the Continue button and the notification icon.
ARRIVEscript.js0.9After how many seconds the notification with the code arrives.
FLIGHTscript.js0.5How many seconds each digit’s flight from the notification to its box lasts.
STAMPscript.js1How hard the seal is stamped: 0.3 = light, 2 = hard.
LOOPscript.jstrueLeft alone, the demo’s pointer asks for the code, lets it fly and confirms.

Try them in the Playground

When to use it

In an app’s sign-up, when changing email or password, in two-factor login, before a payment. The same flight of digits suits a discount code landing in its field or a number copied from a card.

On phones

The same card, as wide as the screen: tapping the boxes opens the numeric keyboard, and the notification sits on top like real ones, almost as wide as the screen.

With reduced motion

The states change at once: the boxes appear, the code fills in with no flight, the tile becomes the seal with no stamp. The demo does not move by itself.

Pitfalls

  • App, address and code are made up, and the code is written in the script: a real one is checked by the server, never by the page.
  • The flying copy must be measured after it is in the DOM, and its landing is worked out on the real box: the card may be changing height meanwhile, so measure at take-off.
  • The invisible field must stay as wide as the boxes and use a font of at least 16 pixels, or Safari on iPhone zooms the page when it takes focus.
  • The button’s bounce and the stamp are GSAP’s: no CSS transitions on the same elements’ transform.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 20 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 animations