
The elastic button
Buttons, Hover, Text
The button that turns on private browsing in a browser or an app. Pressed, the dark leaves the disc and floods the pill, the disc turns on itself and a mask with glasses takes the place of the initials, the label scrambles letter by letter until it reads “Incognito is on” and a bar strikes through the eye on the right. Pressed again, everything goes back.
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>
<!--
"Incognito 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>Incognito 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 Incognito button of a browser or an app: the initials turn round into a mask, the dark spreads out
of the disc, the label scrambles into its new words and a bar strikes through the eye -->
<button class="ig" type="button" data-ig aria-pressed="false">
<span class="ig__fill" data-fill aria-hidden="true"></span>
<span class="ig__disc" data-disc aria-hidden="true">
<b data-initials>NK</b>
<svg data-mask viewBox="0 0 24 24"><path d="M3.500 9.500h17"></path><circle cx="8" cy="14.500" r="3"></circle><circle cx="16" cy="14.500" r="3"></circle><path d="M11 14.500q1-.900 2 0M6.500 9.500 8 5.500h8l1.500 4"></path></svg>
</span>
<span class="ig__label" data-label>Go incognito</span>
<svg class="ig__eye" viewBox="0 0 24 24" aria-hidden="true">
<path d="M2.500 12s3.500-6 9.500-6 9.500 6 9.500 6-3.500 6-9.500 6-9.500-6-9.500-6Z"></path>
<circle cx="12" cy="12" r="2.600"></circle>
<path class="ig__cut" data-cut pathLength="1" d="M4.500 4.500l15 15"></path>
<path class="ig__slash" data-slash pathLength="1" d="M4.500 4.500l15 15"></path>
</svg>
</button>
<span class="ig__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 “Incognito button” from Animorio and fit it into my siteBehind everything sits a circle in the night colour, centred on the disc and at scale zero: switched on, it grows until it covers the pill, which clips it to its own shape.
The horizontal scale goes to zero, and in that frame initials and mask swap; then it comes back to one with a bounce. It reads as a coin turning, with no 3D.
A number goes from 0 to 1: letters before the point reached are already the new ones, the four just after are picked at random every frame, the rest is still the old label. Spaces stay spaces.
Over the eye the same line is drawn twice: a thick one in the background colour, which opens a gap, and over it the thin white one. They draw together with stroke-dashoffset.
| Name | File | Default | What it changes |
|---|---|---|---|
NIGHT | script.js | #17181c | The colour that floods the button when incognito is on. |
INITIALS | script.js | NK | The initials of whoever is signed in, in the disc when incognito is off. |
SCRAMBLE | script.js | 0.55 | How many seconds the label’s letters take to scramble. |
START | script.js | false | true = the button starts already in incognito. |
LOOP | script.js | true | Left alone, the demo’s pointer turns incognito on and after a while off. |
In the account menu of a browser, a search or video app, an AI assistant with temporary chats; wherever the service can be used without leaving a trace in the history.
The same button, 244 by 60 pixels: it fits any screen, is easy on a thumb and both labels fit without wrapping.
Colour, disc, label and bar change at once: no widening circle, no turn and no random letters. 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 4.3 KB; the libraries: GSAP 28 KB.
Tested on 21 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.