
The elastic button
Buttons, Hover, Text
The Get started button of a landing page, in the style of clean product components: the pill and the circle with the arrow are melted together like a drop, and on hover the circle pulls away by a few pixels, stretching the neck that joins them, while inside the arrow runs out to the right and a new one comes in from the left, in a continuous loop. Two variants, the dark one and the white one with a grey hairline.
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>
<!--
"Get started 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 Get started button whose arrow breaks away</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" data-stage>
<!-- two variants of the same call to action: the round arrow sits merged to the end of the pill like a drop,
and on hover it stretches away from it, while the arrow inside runs out and a new one comes in -->
<div class="pair">
<div class="slot">
<button class="go go--dark" type="button" data-go aria-label="Get started">
<span class="go__shadow" data-shadow aria-hidden="true"></span>
<span class="go__shapes go__shapes--dark" aria-hidden="true">
<span class="go__pill-shape" data-pillshape></span>
<span class="go__dot-shape" data-dotshape></span>
</span>
<span class="go__face" data-face>
<span class="go__shine" data-shine aria-hidden="true"></span>
<span class="go__label" data-label>Get started</span>
</span>
<span class="go__dot" data-dot aria-hidden="true">
<svg class="go__arrow" data-arrow viewBox="0 0 20 20"><path d="M4 10h11.2M10.6 5.2 15.4 10l-4.8 4.8"></path></svg>
<svg class="go__arrow" data-arrow viewBox="0 0 20 20"><path d="M4 10h11.2M10.6 5.2 15.4 10l-4.8 4.8"></path></svg>
</span>
</button>
<p class="slot__note">Primary</p>
</div>
<div class="slot">
<button class="go go--light" type="button" data-go aria-label="Get started">
<span class="go__shadow" data-shadow aria-hidden="true"></span>
<span class="go__shapes go__shapes--light" aria-hidden="true">
<span class="go__pill-shape" data-pillshape></span>
<span class="go__dot-shape" data-dotshape></span>
</span>
<span class="go__face" data-face>
<span class="go__shine" data-shine aria-hidden="true"></span>
<span class="go__label" data-label>Get started</span>
</span>
<span class="go__dot" data-dot aria-hidden="true">
<svg class="go__arrow" data-arrow viewBox="0 0 20 20"><path d="M4 10h11.2M10.6 5.2 15.4 10l-4.8 4.8"></path></svg>
<svg class="go__arrow" data-arrow viewBox="0 0 20 20"><path d="M4 10h11.2M10.6 5.2 15.4 10l-4.8 4.8"></path></svg>
</span>
</button>
<p class="slot__note">Secondary</p>
</div>
</div>
<!-- the two filters that melt pill and circle together: the dark one only joins, the light one also draws the hairline -->
<svg class="defs" width="0" height="0" aria-hidden="true" focusable="false">
<filter id="goo-dark" x="-20%" y="-60%" width="140%" height="220%" color-interpolation-filters="sRGB">
<feGaussianBlur in="SourceGraphic" stdDeviation="4.5" result="b"></feGaussianBlur>
<feColorMatrix in="b" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 22 -10" result="g"></feColorMatrix>
</filter>
<filter id="goo-light" x="-20%" y="-60%" width="140%" height="220%" color-interpolation-filters="sRGB">
<feGaussianBlur in="SourceGraphic" stdDeviation="4.5" result="b"></feGaussianBlur>
<feColorMatrix in="b" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 22 -10" result="g"></feColorMatrix>
<feMorphology in="g" operator="dilate" radius="1" result="d"></feMorphology>
<feFlood flood-color="#d4d4d8" result="c"></feFlood>
<feComposite in="c" in2="d" operator="in" result="ring"></feComposite>
<feMerge><feMergeNode in="ring"></feMergeNode><feMergeNode in="g"></feMergeNode></feMerge>
</filter>
</svg>
<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.
14 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 “Get started button” from Animorio and fit it into my siteThe pill and the circle are two plain elements inside a layer with an SVG filter: a 4.5 pixel blur and a colour matrix that boosts the alpha channel (22 and minus 10). Where the two shapes come close the blur adds them up and the alpha cut joins them into a soft waist; as they move apart the neck thins out and snaps by itself.
The light variant’s filter adds an feMorphology that grows the result by one pixel, colours it grey and puts it underneath: the hairline follows the drop even as it pulls away, which a CSS border could not do.
Label, shine and arrows sit in a separate layer, without the filter, so they stay sharp. GSAP moves the filtered circle and the content circle together, with the same x and scale.
Two identical arrows sit in the circle with hidden overflow: one in the middle, the other 40 pixels to the left. On each loop the first runs out to the right with power2.in, the second comes in with power3.out a little later, and they swap roles; a delayedCall repeats the loop while the pointer stays on it.
| Name | File | Default | What it changes |
|---|---|---|---|
LABEL | script.js | Get started | The button label. |
DETACH | script.js | 15 | How many pixels the circle pulls away from the pill on hover. |
GROW | script.js | 1.07 | How much the circle grows as it pulls away. |
ARROW_TIME | script.js | 0.42 | How many seconds an arrow takes to leave and the new one to come in. |
SPRING | script.js | 0.9 | How long the spring that reattaches the circle lasts, in seconds. |
INK | script.js | #0a0a0a | The colour of the dark pill and of the label on the light one. |
For the main button of a landing page or a SaaS product, Get started, Start free trial, Book a demo: a motion that invites the click without shouting, and two variants for the primary and the secondary action.
The two buttons stack one above the other, slightly shorter. Without a mouse the first tap pulls the circle away, makes the arrow jump and reattaches it a moment later.
The circle does not pull away and nothing slides: on hover the shadow darkens and the arrow renews itself with a fade.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 4.9 KB; the libraries: GSAP 28 KB.
Tested on 26 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.