Skip to content
animorio
IT
All components

RSS waves button

Buttons, HoverGSAP, CSS onlyEasyCompressed weight: Demo 5.4 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

18 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 “RSS waves 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 white, alone in the middle, there is a white pill with a thin border: on the left the RSS mark drawn as three thin waves starting from a corner, then on two lines the words «Subscribe via RSS» and, below, small and grey, the feed link «margins.blog/feed.xml». On tap the pill gives a little and comes back on a spring; a pale orange text selection sweeps across the link from left to right, as when you drag over it with the mouse, and the link turns black; at the same time the three waves light up in orange one after the other, from the smallest to the largest, each one drawn along its arc, and as it lights up it pushes out by a pixel along the diagonal and comes back to its place. The label becomes «Feed link copied», coming in narrow and opening on the width axis, the pill’s border warms up to orange and the link really lands on the clipboard. After a moment everything goes back: the selection leaves to the right, the waves go dark from the largest to the smallest running away along their arcs, the label returns to «Subscribe via RSS». Tapping again while it is copied, the waves give another small beat and the wait starts over. Hovering, the waves send out a light signal, one pixel outwards one after the other. Until someone touches it, the pill plays the gesture by itself.

How it works

Three arcs, twice

The 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.

One pixel out, along the diagonal

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.

The dragged selection

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 words and the clipboard

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.

Going back by itself

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.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#f26b1dThe colour of the lit waves and of the selection.
FEEDscript.jsmargins.blog/feed.xmlThe feed link written underneath and copied on tap.
LABEL_OFFscript.jsSubscribe via RSSThe label at rest.
LABEL_ONscript.jsFeed link copiedThe label once the link is copied.
STAGGERscript.js0.09How many seconds between one wave lighting up and the next.
PUSHscript.js1How many pixels each wave pushes out when it lights up.
RESETscript.js1.6How many seconds the copied state stays before going back.
SPRINGscript.js1How springy the press and the waves are: 0.4 calm, 2 very bouncy.
SPEEDscript.js1The speed of everything: 2 twice as fast, 0.5 half.
HOLDscript.js1.3How many seconds it rests between two gestures when it plays by itself.
AUTOscript.jstrueThe button plays the gesture by itself until someone touches it.

Try them in the Playground

When to use 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 phones

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.

With reduced motion

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.

Pitfalls

  • The classic RSS mark has a filled circle in the corner: here it is gone, because an orange circle in front of a label is exactly the coloured dot the site does not use; the three arcs remain, and it still reads.
  • To switch the waves off the dashoffset goes to minus the length and not back to the length: so the colour runs away forwards along the arc instead of rewinding, and at rest it starts over with a fromTo.
  • navigator.clipboard only exists in a secure context and only after a real tap: the automatic loop copies nothing (it would have filled the clipboard of whoever is looking at the page), and without a clipboard the gesture stays the same.

Libraries

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.

Testing

Tested on 1 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