
The star rating
Ratings, SVG, Hover
The landing page button of Tessel, a made-up app that tidies the windows on a Mac: Download for Mac. On the tap the dark pill fills from the left in bursts, the way data really arrives, with a violet lit edge and a counting percentage, while the arrow keeps streaming down into the laptop screen. When the download is done, the little disk image window opens beside the label: the app icon hops along a dashed arc into the Applications folder, the front flap opens, shuts and the folder bumps. The pill swells a hair and says Open Tessel; on the tap the icon bounces twice like in the Dock and the button goes back to rest.
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>
<!--
"Download for Mac 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>The Download for Mac button with the app that slides into the Applications folder</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">
<!-- one gesture: get the Mac app. Pressed, the pill fills as the data arrives in bursts and the arrow streams
into the laptop; then the window inside the pill opens like a disk image, the app hops along a dashed arc
into the Applications folder, the flap closes behind it and the pill says Open Tessel. Opening it, the
icon bounces twice like in the Dock and the pill goes back to rest -->
<div class="frame" data-wrap>
<button class="c" type="button" data-btn data-autoclic aria-describedby="c-note">
<span class="c__skin" data-skin aria-hidden="true"></span>
<span class="c__glow" data-glow aria-hidden="true"></span>
<span class="c__fill" aria-hidden="true"><span class="c__bar" data-bar></span></span>
<span class="c__sheen" data-sheen aria-hidden="true"></span>
<span class="c__win" data-win aria-hidden="true">
<!-- the laptop with the arrow that streams in while it downloads -->
<span class="w__laptop" data-laptop>
<svg viewBox="0 0 24 24">
<path class="lp__screen" d="M5.2 5.2h13.6a1.4 1.4 0 0 1 1.4 1.4v8.6H3.8V6.6a1.4 1.4 0 0 1 1.4-1.4Z"></path>
<path class="lp__base" d="M2 17.6h20l-.7 1a1.6 1.6 0 0 1-1.3.7H4a1.6 1.6 0 0 1-1.3-.7Z"></path>
<path class="lp__notch" d="M10.4 17.6h3.2"></path>
<g class="lp__arrow" data-arrow><path d="M12 7.4v5"></path><path d="m9.8 10.6 2.2 2.2 2.2-2.2"></path></g>
</svg>
</span>
<!-- the disk image window: the app, the dashed arc and the Applications folder -->
<svg class="w__trail" data-trail viewBox="0 0 74 26"><path data-trailpath d="M14 13C24 2.5 46 2.5 56 11"></path></svg>
<span class="w__folder w__folder--back" data-folder>
<svg viewBox="0 0 24 20">
<defs>
<linearGradient id="fb" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#7fa6dc"/><stop offset="1" stop-color="#4f78b8"/></linearGradient>
<linearGradient id="ff" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#bcd5f6"/><stop offset="1" stop-color="#86aee3"/></linearGradient>
</defs>
<path fill="url(#fb)" d="M2.4 2.2h6.1l2 2.1h11.1c.8 0 1.4.6 1.4 1.4v11.6c0 .8-.6 1.4-1.4 1.4H2.4c-.8 0-1.4-.6-1.4-1.4V3.6c0-.8.6-1.4 1.4-1.4Z"></path>
<path class="f__paper" d="M4 5.6h16"></path>
</svg>
</span>
<span class="w__app" data-app><span class="app"><i></i><i></i><i></i></span></span>
<span class="w__folder w__folder--front" data-folder>
<svg class="f__flap" data-flap viewBox="0 0 24 20">
<path fill="url(#ff)" d="M1 7.6c0-.8.6-1.4 1.4-1.4h19.2c.8 0 1.4.6 1.4 1.4v9.7c0 .8-.6 1.4-1.4 1.4H2.4c-.8 0-1.4-.6-1.4-1.4Z"></path>
<path class="f__edge" d="M2.4 6.75h19.2"></path>
<path class="f__mark" d="M9.7 15.6 12 10.3l2.3 5.3M10.5 13.9h3"></path>
</svg>
</span>
<!-- the app at rest in the pill once it is installed -->
<span class="w__done" data-done><span class="app app--big"><i></i><i></i><i></i></span></span>
</span>
<span class="c__labels" data-labels>
<span class="c__label" data-l="idle">Download for Mac</span>
<span class="c__label" data-l="wait">Downloading<span class="c__pct"><span data-pct>0</span>%</span></span>
<span class="c__label" data-l="move">Installing</span>
<span class="c__label" data-l="done">Open Tessel</span>
<span class="c__label" data-l="open">Opening</span>
</span>
</button>
<p class="note" id="c-note" aria-live="polite">
<span class="note__line" data-n="idle">Tessel 2.4 · macOS 13 or later · 14.8 MB</span>
<span class="note__line" data-n="done">Installed in Applications · Version 2.4.1</span>
</p>
</div>
</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.
21 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 “Download for Mac button” from Animorio and fit it into my siteThe download is a GSAP timeline with as many stretches as BURSTS: each takes the progress to a mark nudged by a sine, with a power2.out that starts fast and brakes, and a short stall before the next. On every update the bar moves with xPercent and the percentage is rounded, so it never stops halfway through a digit.
The bar is a full-size child inside a rounded container with hidden overflow, pushed out to the left by a hundred percent. The lit edge is a one-pixel inner shadow on its right side plus a violet shadow that spills ahead: it goes wherever the bar goes.
The app follows a quadratic Bézier curve worked out by hand on every update of a tween from 0 to 1: the control point sits above the middle, HOP high, and the icon tips with the sine of time and shrinks. The dashed arc is uncovered by a clip-path from the left and then erased behind the app by the same clip-path.
The folder is made of two separate layers, the back below and the flap on top, with the app in between: so the app really slips inside. The flap opens with scaleY and skewX from its base, shuts with an elastic.out and both layers give a scale bump from the bottom together.
Like the site’s pill: the label changes on Mona Sans’s wdth axis (narrow as it comes in, wide on hover) and its box is measured again once the font has loaded; the ground is a layer of its own that swells with a back.out, so pressing the button and the ground swelling never cancel each other.
| Name | File | Default | What it changes |
|---|---|---|---|
DOWNLOAD | script.js | 1.6 | The seconds of the download, from the empty pill to the full one. |
BURSTS | script.js | 5 | In how many bursts the data arrives (1 = one smooth run). |
HOP | script.js | 9 | How high the app hops on the arc, in pixels. |
BOUNCE | script.js | 1.6 | How much the pill, the labels and the icons bounce. |
DOCK | script.js | 2 | How many times the icon bounces on opening, like in the Dock. |
SWELL | script.js | 1 | How much the pill swells on hover and on arrival. |
--accento | style.css | #8f7dff | The app’s colour: the bar’s edge, the arrow, the icon. |
--inchiostro | style.css | #121116 | The colour of the pill. |
On the landing page of a Mac app, a downloadable program or a developer tool: the button tells in a second what happens after the click, downloading and dragging into Applications, and in the end invites you to open it.
The pill drops to 56 pixels and the label by a point; the finger taps like the mouse. Without hover the light stays off and the pill does not swell before the tap.
No hops or movement: the bar appears whole and lights up slowly while the percentage counts, the app and the folder appear and the app fades out, the labels change with a fade and the app icon appears still in its place.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.1 KB; the libraries: GSAP 28 KB.
Tested on 16 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.