Skip to content
animorio
IT
All components

Download for Mac button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 8.1 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a white ground sits the dark Download for Mac pill with a laptop drawn in line and a violet arrow in the screen, and below it the grey line with the version, the system and the file size. On hover a violet light follows the pointer, the pill swells on a spring, the label widens on the font’s wdth axis and the arrow nods down; pressed, the pill squashes slightly. On the tap the line below goes, the label rolls to Downloading with the percentage and a striped bar slides in from the left with a lit edge, in bursts and short stalls, while the arrow keeps streaming down into the screen. At a hundred a light crosses the pill, the bar fades and the icon window grows on a spring: the app, a rounded violet and blue square with three tiles, pops up on the left, the Applications folder on the right, and a dashed arc draws between them. The app hops along the arc, tipping as it flies, the arc erases behind it, the folder flap opens, the app drops inside, the flap shuts on an elastic and the folder bumps. The window closes on the app icon, the pill swells a hair and says Open Tessel, and Installed in Applications appears below. Another tap opens it: the icon bounces twice like in the Dock and the pill goes back to Download for Mac.

How it works

Data that arrives in bursts

The 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 with a lit edge

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 hop along the arc

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.

Into the folder

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.

The elastic pill

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.

Values to change

NameFileDefaultWhat it changes
DOWNLOADscript.js1.6The seconds of the download, from the empty pill to the full one.
BURSTSscript.js5In how many bursts the data arrives (1 = one smooth run).
HOPscript.js9How high the app hops on the arc, in pixels.
BOUNCEscript.js1.6How much the pill, the labels and the icons bounce.
DOCKscript.js2How many times the icon bounces on opening, like in the Dock.
SWELLscript.js1How much the pill swells on hover and on arrival.
--accentostyle.css#8f7dffThe app’s colour: the bar’s edge, the arrow, the icon.
--inchiostrostyle.css#121116The colour of the pill.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • A folder made of a single element with a transform becomes a stacking context and the app cannot pass between its layers: the back and the flap are two siblings of the app, scaled by the same tween.
  • The space between Downloading and the percentage in an inline-flex label disappears: the gap is a margin on the percentage, which also has tabular figures and a minimum width so the pill does not tremble as it counts.
  • The label width must be measured again after the font loads and with the wdth it will end on, hover included, or the last letter of Mac was cut.
  • The preview autopilot clicks every 2.8 seconds: clicks during the download and the install are ignored, so the Open Tessel state stays in view for more than two seconds before the click that opens it.

Libraries

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.

Testing

Tested on 16 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components