
The elastic button
Buttons, Hover, Text
The form a workspace uses to invite its team, on very light grey: the email addresses typed into the field turn into chips with initials, arriving on a short spring, and the plan’s seats bar stretches with every invite. A wrong address makes the field shake, the X removes a chip and the others close up, Editor and Viewer are chosen with a sliding pill. Press Send and the initials fly in an arc into the team row, the seat count goes up and the button turns green with a check.
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>
<!--
"Team invite 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 team invite form</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 invite form of a team workspace: emails turn into chips, the seats fill up and the invites fly into the team -->
<section class="inv" data-inv aria-label="Invite your team">
<header class="head">
<div class="ws">
<svg class="ws__mark" viewBox="0 0 20 20" aria-hidden="true"><rect x="2" y="2" width="11" height="11" rx="3.2"></rect><rect x="7" y="7" width="11" height="11" rx="3.2"></rect></svg>
<span class="ws__brand" data-brand>Fernhall</span>
<span class="ws__sep" aria-hidden="true">/</span>
<span class="ws__name">Q4 roadmap</span>
</div>
<h1 class="title">Invite your team</h1>
<p class="sub" data-sub>They can edit docs, boards and tasks.</p>
</header>
<div class="box" data-box>
<div class="chips" data-chips>
<input class="input" data-input type="email" inputmode="email" autocomplete="off" spellcheck="false" placeholder="name@company.com" aria-label="Email addresses">
</div>
</div>
<p class="hint" data-hint aria-live="polite">Press Enter or comma to add</p>
<div class="role">
<span class="role__label">Invite as</span>
<div class="seg" data-seg role="radiogroup" aria-label="Role">
<span class="seg__pill" data-pill aria-hidden="true"></span>
<button class="seg__opt" type="button" role="radio" aria-checked="true" data-role="editor">Editor</button>
<button class="seg__opt" type="button" role="radio" aria-checked="false" data-role="viewer">Viewer</button>
</div>
</div>
<div class="seats">
<div class="seats__top">
<span>Seats</span>
<span class="seats__count"><span class="roll" data-used>2</span> of <span data-total>6</span> used</span>
</div>
<div class="seats__bar" aria-hidden="true">
<span class="seats__pending" data-pending></span>
<span class="seats__fill" data-fill></span>
</div>
</div>
<footer class="foot">
<div class="stack" data-stack>
<span class="av av--a">LR</span>
<span class="av av--b">JS</span>
</div>
<button class="send" type="button" data-send disabled>
<span class="send__shine" aria-hidden="true"></span>
<svg class="send__ring" data-ring viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="7"></circle></svg>
<svg class="send__check" data-check viewBox="0 0 20 20" aria-hidden="true"><path d="M4.8 10.4 8.4 14l6.8-7.6" pathLength="1"></path></svg>
<span class="send__label" data-label>Send invites</span>
</button>
</footer>
</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.
35 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 “Team invite form” from Animorio and fit it into my siteEnter, comma, semicolon, space or Tab close the address: if it passes the check it becomes a new element before the field, and GSAP brings it in with back.out from where the text was, scaled to 72%, while the initials circle turns 40 degrees and settles. An address pasted with commas is split into several chips at once.
A removed chip first fades out as it shrinks, then its width, padding and border go to zero: the others move by themselves to close the gap, with no calculations. Backspace on the empty field first marks the last chip and the second time removes it, as in email apps.
The bar has two layers: the solid one for seats already taken and a light blue one underneath for pending invites, which stretches on a spring with every chip. When the seats run out the field accepts no more addresses and says so.
Press Send and for each chip an invisible avatar is added to the team row, its place is measured, and a circle with the initials flies there from the chip on an arc: x and y go from one point to the other, and a sine rising and falling is taken off y, while the circle grows from 22 to 30 pixels. On arrival the real avatar appears with a small bounce and the seat count rolls.
A drawn pointer types the addresses, gets one wrong, fixes it, removes an invite with the X, picks Viewer and sends; the autopilot’s focus is just a class on the field, because focus() would scroll the page holding the card. As soon as the page is really touched the autopilot stops.
| Name | File | Default | What it changes |
|---|---|---|---|
BRAND | script.js | "Fernhall" | The name of the invented workspace. |
TOTAL_SEATS | script.js | 6 | The seats on the plan. |
USED_SEATS | script.js | 2 | The seats already taken by the team. |
SPRING | script.js | 1.6 | How much the chips bounce when they arrive (0 = none). |
FLY_ARC | script.js | 44 | How high the arc of the invites flying into the team rises, in pixels. |
SHAKE | script.js | 1 | How much a wrong address shakes (0 = none). |
TYPE_SPEED | script.js | 1 | How fast the autopilot types. |
For the invite step of a team tool, a SaaS app or a back office: whoever invites sees at once who they are adding, with which role and how many seats are left on the plan, and notices a wrong address before sending.
The same animation: the card is sized on both the width and the height of the box, the grey line under the title hides on short screens and a tap does what the pointer does; the keyboard opens with the at sign already there.
No springs, flights or shaking: the chips fade in, the wrong address turns red without moving, the initials disappear from the field and fade into the team row.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.7 KB; the libraries: GSAP 28 KB.
Tested on 25 October 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.