
The elastic button
Buttons, Hover, Text
The card of an authenticator app: three accounts with a six-digit code and a ring that runs down on the same clock; in the last seconds digits and rings turn warm, then the codes roll into new ones, row after row. A tap copies the code: the mark becomes a tick and the name says “Copied”.
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>
<!--
"Authenticator codes card" 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>Authenticator codes card</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 authenticator card: three accounts share one clock, each ring runs down with it,
the codes turn warm near the end and roll into new ones together; a tap copies a code -->
<section class="au" data-au aria-label="Authenticator">
<header class="au__head">
<span class="au__title">Authenticator</span>
<span class="au__left" aria-hidden="true">New codes in <b data-left>0</b>s</span>
</header>
<div class="au__list" data-list></div>
<p class="au__live" data-live aria-live="polite"></p>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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>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.
15 values to change
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 “Authenticator codes card” from Animorio and fit it into my siteA single tween takes a number from 0 to 1 in PERIOD seconds and repeats: from it come the three rings’ stroke-dashoffset, the seconds written at the top and the last-seconds class. On every repeat the codes change.
Each digit sits in an equal-width cell with hidden overflow: the old one leaves upwards with power2.in, the text changes, the new one rises with back.out. The delay grows digit by digit and row by row, so the change reads as a wave.
The tap writes the code to the clipboard, closes the copy mark and draws the tick in the same spot; a delayed call brings everything back. Tapping again before that cancels the old call.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #7cf0c0 | The colour of the ring and of the tick. |
WARN | script.js | #ffb057 | The colour of the last seconds. |
PERIOD | script.js | 10 | How many seconds between code changes (real ones: 30). |
LATE | script.js | 0.25 | The final share of the time in which the codes turn warm. |
ROLL | script.js | 0.5 | How many seconds a digit takes to roll into the new one. |
LOOP | script.js | true | Left alone, a pointer copies one code on every round. |
In the app or extension that generates two-step verification codes, in a password manager, on an account’s security page; and wherever a value expires and renews on a timer: an entry code, a held price, a token.
The same component: rows and digits shrink with the window’s height, each row stays at least 56 pixels tall and is one whole tap target.
No rolls, lights or springs: the codes change at once, the rings step down once a second and the copy shows the tick straight away.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.8 KB; the libraries: GSAP 28 KB.
Tested on 18 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.