
The elastic button
Buttons, Hover, Text
The environment variables editor of a hosting panel. Paste a .env block and each line lands as it was written, KEY=value; then the equals sign drops, the value crosses the row to its column on a spring and covers itself character by character. The eye uncovers a value for a few seconds, under a line that runs out; Copy copies it, Undo paste folds the rows away.
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>
<!--
"Environment variables" 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>Environment variables</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the environment variables editor of a hosting panel: a pasted .env block splits into rows, each value
crosses to its column and masks itself character by character, the eye uncovers one for a few seconds -->
<section class="ev" data-ev aria-label="Environment variables">
<header class="ev__head">
<div class="ev__title">
<h2>Environment variables</h2>
<p><span class="ev__count" data-count><b data-num>2</b></span> in <i>Production</i></p>
</div>
<button class="ev__paste" type="button" data-paste>
<span class="ev__pasteicon" aria-hidden="true">
<svg viewBox="0 0 16 16"><g data-clip><path d="M5.500 3h-1.200A1.300 1.300 0 0 0 3 4.300v8.400A1.300 1.300 0 0 0 4.300 14h7.400a1.300 1.300 0 0 0 1.300-1.300V4.300A1.300 1.300 0 0 0 11.700 3h-1.200"></path><path d="M6 2h4v2.400H6Z"></path></g><path class="ev__undo" data-undo d="M4.200 6.200h5.300a3 3 0 0 1 0 6H6.500M4.200 6.200l2.300-2.300M4.200 6.200l2.300 2.300"></path></svg>
</span>
<span class="ev__pastelabel" data-pastelabel>Paste .env</span>
</button>
</header>
<ul class="ev__list" data-list></ul>
<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>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.
16 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 “Environment variables” from Animorio and fit it into my siteEach row is born in the final grid, but the value is shifted with an x so it sits right after the equals sign: the distance is measured from the width of the name and of one character.
The equals sign fades as it drops, the value’s x goes back to zero on an elastic and the field’s ground appears under it.
A number runs from zero to the value’s length: at each step the text is rewritten, as many dots as the number says and the rest in clear (or the reverse to uncover).
A line under the uncovered value goes from scaleX 1 to 0 over HIDE_AFTER seconds, linear; at the end it calls the function that covers it again.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #3d5afe | The colour of the uncovered value, the tick and the tint of the pasted rows. |
MASK_SPEED | script.js | 0.45 | How many seconds a value takes to cover or uncover, character by character. |
HIDE_AFTER | script.js | 3 | How many seconds a value stays uncovered before covering itself again. |
SPRING | script.js | 1 | How much the value bounces on its way to its column: 0.3 = a little, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer uncovers a value, copies it, pastes the block and undoes it. |
In a project’s settings on a hosting platform, in a developer dashboard or in any form where several key and value pairs are pasted at once: secrets, headers, parameters.
The same card, 326 pixels wide at most: name, field and two 28-pixel buttons fit on one row even on a narrow screen, and long values fade out on the right instead of wrapping.
Pasted rows appear already split and covered; the eye swaps dots and text at once and covers it again after a few seconds; no bounces and no folding rows. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.6 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.