
The star rating
Ratings, SVG, Hover
The button for signing in without a password: “Email me a magic link”. Press it and the envelope closes and crosses the pill leaving a violet trail, the label becomes “Check your inbox” with the address under it and the envelope a tick. Round the disc a ring runs out: when it ends, the disc springs back and the button offers “Resend link”.
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>
<!--
"Magic link button" 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>Magic link button</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 passwordless sign-in button: the envelope crosses the pill leaving a trail, the label becomes
"Check your inbox" with the address, and a ring runs out before the link can be sent again -->
<button class="ml" type="button" data-ml>
<span class="ml__trail" data-trail aria-hidden="true"></span>
<span class="ml__sheen" data-sheen aria-hidden="true"></span>
<span class="ml__text">
<span class="ml__label" data-label>Email me a magic link</span>
<span class="ml__sub" data-sub aria-hidden="true"></span>
</span>
<span class="ml__disc" data-disc aria-hidden="true">
<svg class="ml__ring" viewBox="0 0 52 52"><circle data-ring pathLength="1" cx="26" cy="26" r="24.500" transform="rotate(-90 26 26)"></circle></svg>
<svg class="ml__icon" viewBox="0 0 24 24">
<g data-env><rect x="3.500" y="6" width="17" height="12.500" rx="2.600"></rect><path data-flap d="M4.200 7.600 12 13.200l7.800-5.600"></path></g>
<path class="ml__tick" data-tick pathLength="1" d="M6.500 12.600l3.700 3.700 7.500-8"></path>
</svg>
</span>
</button>
<span class="ml__say" data-say aria-live="polite"></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>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.
10 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Magic link button” from Animorio and fit it into my siteThe envelope’s flap is a three-point path: GSAP animates its d attribute between the tip up (open) and the tip down (closed).
The disc goes right with an x equal to the pill’s width minus sixty pixels, measured at that moment; the trail is a gradient as wide as the pill with scaleX from 0 to 1 from the same side, on the same curve.
The label leaves upwards, changes its text and comes in from below; its container slides 44 pixels left into the space the disc left.
An SVG circle with pathLength 1: stroke-dashoffset from 0 to 1 over RESEND seconds, linear; at the end it calls the return.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #8f7bff | The colour of the disc, the trail and the shadow under the button. |
EMAIL | script.js | nora@example.com | The address the link goes to, written under “Check your inbox”. |
RESEND | script.js | 4 | How many seconds to wait before the link can be sent again (the ring running out). |
SPRING | script.js | 1 | How much the disc bounces when it arrives and when it returns: 0.3 = a little, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer sends the link, waits for the ring and sends it again. |
On the sign-in page of an app or service that lets people in with a link sent by email, under the address field; also for “Send reset link” and any sending that cannot be repeated straight away.
The same button, 286 by 60 pixels at most: on a narrow screen the pill shortens and the disc’s journey is measured again; with a finger the journey, the trail and the ring remain.
No journey and no trail: on tap the button shows “Check your inbox”, the address and the tick on the right at once; after the wait it goes back to “Resend link”. The demo does not move by itself.
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.
Tested on 22 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.
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.