
The elastic button
Buttons, Hover, Text
One button, one sign, in the simple style of product interface pieces: the black «Watch later» pill of a video app with a clock drawn in three thin strokes; on tap the minute hand goes once round the face and the rim fills in amber behind it, the hour hand steps on by an hour and the label becomes «Saved». On a second tap the hand winds back and takes the colour with it.
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>
<!--
"Watch later 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 Watch later button with the clock hand going round</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>
<!-- one button, one sign: the minute hand goes round once and the rim of the clock fills in behind it -->
<button class="later" type="button" data-later aria-pressed="false" aria-label="Watch later">
<span class="later__body" data-body>
<svg class="later__icon" viewBox="0 0 32 32" aria-hidden="true">
<g data-clock>
<circle class="later__rim" cx="16" cy="16" r="10.5"/>
<circle class="later__fill" data-fill cx="16" cy="16" r="10.5" transform="rotate(-90 16 16)"/>
<line class="later__hand later__hand--hour" data-hour x1="16" y1="16" x2="20.2" y2="16"/>
<line class="later__hand" data-minute x1="16" y1="16" x2="16" y2="9.2"/>
</g>
</svg>
<span class="later__label" aria-hidden="true">
<span class="later__word" data-word="on">Watch later</span>
<span class="later__word" data-word="off">Saved</span>
</span>
</span>
</button>
</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 “Watch later button” from Animorio and fit it into my siteThe icon is an SVG of four parts: the rim of the face at a third of opacity, the same circle in the accent colour turned by minus ninety degrees so the stroke starts at twelve, and the two hands, two lines with rounded ends.
The minute hand and the amber rim read the same number, the angle of an object GSAP animates: on every frame the hand turns around the centre (svgOrigin 16 16) and the circle’s strokeDashoffset drops by the same fraction of the turn. So the colour always sits exactly behind the hand.
The turn goes from 0 to 367 degrees with power3.inOut, starting slow and arriving slow, seven degrees past the end, which at the tip of the hand is one pixel; then it comes back to 360 with elastic.out. The rim stays full because the fraction is capped at one. The hour hand starts as the minutes pass twelve and lands with back.out.
The old word rises and leaves halfway round, before the new one arrives, which comes up from below with the wdth axis at 75 and the weight at 420 and lands at 100 and 560 with back.out. The pill’s width follows the new word, measured in its final shape.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #ffb21e | The colour the rim of the face fills in with. |
LABEL_ON | script.js | Watch later | The words before saving. |
LABEL_OFF | script.js | Saved | The word once it is saved. |
SWEEP | script.js | 0.95 | How many seconds the minute hand takes to go round. |
SPRING | script.js | 1 | How springy the press and the hands are: 0.4 calm, 2 very bouncy. |
SPEED | script.js | 1 | The speed of everything: 2 twice as fast, 0.5 half. |
HOLD | script.js | 2.2 | How many seconds each state stays when the button plays by itself. |
AUTO | script.js | true | The button plays the gesture by itself until someone touches it. |
For the button that puts a video, an episode or a lesson aside for later, in a video, course or podcast app: the hand going round says by itself that it has been saved, with no need for a notice.
On the phone the pill and the icon take their size from the screen (clamp on the shorter side); there is no hover, everything else is the same.
The hands are in place at once, the amber rim fades in and out and the words swap with a fade; the pill takes its new width at once.
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 31 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.