
The elastic button
Buttons, Hover, Text
One button, one gesture, for a blog or a newsletter: the white «Subscribe via RSS» pill with the feed mark made of three thin waves and, under the words, the feed link in small type; on tap a text selection sweeps across the link from the left as if someone dragged over it, the three waves light up from the corner outwards pushing out by a pixel, the label becomes «Feed link copied» and the link is really copied. Then everything 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>
<!--
"RSS waves 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 RSS button with the waves that light up</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 gesture: the feed link gets selected, the three waves light up from the corner, the link is copied -->
<button class="rss" type="button" data-rss aria-label="Subscribe via RSS, copy the feed link">
<span class="rss__body" data-body>
<span class="rss__mark" aria-hidden="true">
<svg class="rss__icon" viewBox="3.6 3.6 17.2 17.2">
<g class="rss__waves">
<path class="rss__wave" data-wave d="M5 14.2A4.8 4.8 0 0 1 9.8 19"/>
<path class="rss__wave" data-wave d="M5 9.4A9.6 9.6 0 0 1 14.6 19"/>
<path class="rss__wave" data-wave d="M5 4.6A14.4 14.4 0 0 1 19.4 19"/>
</g>
<g class="rss__lit">
<path class="rss__glow" data-glow d="M5 14.2A4.8 4.8 0 0 1 9.8 19"/>
<path class="rss__glow" data-glow d="M5 9.4A9.6 9.6 0 0 1 14.6 19"/>
<path class="rss__glow" data-glow d="M5 4.6A14.4 14.4 0 0 1 19.4 19"/>
</g>
</svg>
</span>
<span class="rss__text">
<span class="rss__label" data-label>
<span class="rss__word" data-word="off">Subscribe via RSS</span>
<span class="rss__word" data-word="on">Feed link copied</span>
</span>
<span class="rss__url">
<span class="rss__select" data-select aria-hidden="true"></span>
<span class="rss__link" data-link>margins.blog/feed.xml</span>
</span>
</span>
</span>
</button>
<span class="rss__live" data-live role="status" aria-live="polite"></span>
</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.
18 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 “RSS waves button” from Animorio and fit it into my siteThe mark is three SVG arcs sharing a centre in the bottom-left corner, drawn twice: underneath in black, on top in the accent with a strokeDasharray equal to their length (getTotalLength). Lighting a wave means taking strokeDashoffset from that length to zero: the colour runs along the arc from the top to the right.
Each wave, black and lit together, moves by PUSH units along the diagonal leaving the corner (x and y times 0.707) with power2.out in fourteen hundredths and goes back to zero with back.out, which takes it a hair too far and settles it. The three start STAGGER seconds apart, the smallest first: it looks like a signal going out.
Behind the link there is a rounded rectangle in the accent at 16%, at scaleX zero with its origin on the left: it widens with power2.inOut like a selection made with the mouse, and on the way back the origin moves to the right, so the selection leaves on the side where it ended instead of rewinding.
The old label rises and leaves before the new one arrives, coming up from below with the wdth axis at 75 and the weight at 420 and landing at 100 and 560 with back.out; the line springs to the new label’s width. On a real tap the link goes to the clipboard with navigator.clipboard, and an aria-live region says «Feed link copied» to screen reader users.
The copied state lasts RESET seconds with a gsap.delayedCall, then the waves go dark from the largest one, running away along their arcs (strokeDashoffset to minus the length), and the selection leaves to the right. A second tap while copied does not replay everything: the waves beat again and the wait starts over.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #f26b1d | The colour of the lit waves and of the selection. |
FEED | script.js | margins.blog/feed.xml | The feed link written underneath and copied on tap. |
LABEL_OFF | script.js | Subscribe via RSS | The label at rest. |
LABEL_ON | script.js | Feed link copied | The label once the link is copied. |
STAGGER | script.js | 0.09 | How many seconds between one wave lighting up and the next. |
PUSH | script.js | 1 | How many pixels each wave pushes out when it lights up. |
RESET | script.js | 1.6 | How many seconds the copied state stays before going back. |
SPRING | script.js | 1 | How springy the press and the waves 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 | 1.3 | How many seconds it rests between two gestures when it plays by itself. |
AUTO | script.js | true | The button plays the gesture by itself until someone touches it. |
At the end of an article, on a writer’s page, next to a newsletter sign-up or in a blog footer: people who read with feed readers grab the link in one tap, and the sweeping selection says by itself what was copied.
On the phone the pill, the mark and the words take their size from the screen (clamp on the shorter side); there is no hover, everything else is the same.
Nothing moves: the waves light up and go dark with a fade, the selection appears and disappears in place, the labels swap with a fade and 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 5.4 KB; the libraries: GSAP 28 KB.
Tested on 1 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.