Skip to content
animorio
IT
All components

Podcast follow button

Buttons, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.2 KBGSAP 28 KBFreeDownload the zip

The Follow button of an invented podcast, Field Notes After Dark, on its dark show card. Press it and the cream pill squashes, turns dark and narrows into «Following» with a lilac tick that draws itself, the follower count rolls up by one and a round bell slides out beside it and rings. The bell opens a small glass panel with three alert levels, All episodes, Highlights and Off: a mark slides under the chosen one, stretching while it travels, and the bell changes face to match (full with its sound waves, outlined, struck through). Point at «Following» and it offers to unfollow, and everything goes home.

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>
<!--
  "Podcast follow 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 podcast follow button with the bell and the choice of alerts</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">
    <!-- the show card of an invented podcast: «Follow» turns into «Following», the follower count rolls up by one and a
         bell slides out beside the pill; the bell opens a small panel with three alert levels, a mark slides under the
         chosen one and the bell rings and changes face to match -->
    <section class="show" aria-labelledby="show-title">
      <span class="show__glow" data-glow aria-hidden="true"></span>
      <div class="show__top">
        <div class="cover" aria-hidden="true">
          <svg viewBox="0 0 100 100">
            <defs>
              <radialGradient id="g-cover" cx="30%" cy="25%" r="90%">
                <stop offset="0" stop-color="#b9a8ff"/>
                <stop offset=".55" stop-color="#5a4bd6"/>
                <stop offset="1" stop-color="#1b1647"/>
              </radialGradient>
            </defs>
            <rect width="100" height="100" fill="url(#g-cover)"/>
            <g class="cover__rings" data-rings fill="none" stroke="#fff">
              <circle cx="50" cy="62" r="10" stroke-opacity=".7"/>
              <circle cx="50" cy="62" r="20" stroke-opacity=".45"/>
              <circle cx="50" cy="62" r="30" stroke-opacity=".28"/>
              <circle cx="50" cy="62" r="40" stroke-opacity=".16"/>
            </g>
            <path d="M14 22h30" stroke="#fff" stroke-opacity=".85" stroke-width="2.4" stroke-linecap="round"/>
            <path d="M14 29h18" stroke="#fff" stroke-opacity=".5" stroke-width="2.4" stroke-linecap="round"/>
          </svg>
          <span class="cover__sheen" data-sheen></span>
        </div>
        <div class="show__info">
          <span class="show__kicker">Podcast</span>
          <h1 class="show__title" id="show-title">Field Notes After Dark</h1>
          <p class="show__meta">Hollowmere Audio <span aria-hidden="true">·</span> weekly</p>
          <p class="show__count"><span class="roll" data-count aria-live="polite">12,480</span> followers</p>
        </div>
      </div>

      <div class="actions" data-actions>
        <button class="follow" type="button" data-follow aria-pressed="false">
          <span class="follow__shine" data-shine aria-hidden="true"></span>
          <span class="follow__face follow__face--off" data-off>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2v9.6M3.2 8h9.6"/></svg>Follow
          </span>
          <span class="follow__face follow__face--on" data-on aria-hidden="true">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path class="tick" data-tick d="M3.4 8.4l3 3 6.2-6.6" pathLength="1"/></svg>Following
          </span>
          <span class="follow__face follow__face--leave" data-leave aria-hidden="true">Unfollow</span>
        </button>
        <div class="bell-wrap" data-bellwrap>
          <button class="bell" type="button" data-bell aria-haspopup="true" aria-expanded="false" aria-label="Episode alerts: all episodes">
            <svg viewBox="0 0 24 24" aria-hidden="true">
              <g data-bellbody>
                <path class="bell__shape" data-shape d="M12 3.6c-3.3 0-5.6 2.5-5.6 5.8v3.3l-1.7 2.6c-.3.5 0 1.1.6 1.1h13.4c.6 0 .9-.6.6-1.1l-1.7-2.6V9.4c0-3.3-2.3-5.8-5.6-5.8z"/>
                <path class="bell__clapper" data-clapper d="M9.8 18.6a2.3 2.3 0 0 0 4.4 0"/>
              </g>
              <path class="bell__wave" data-wave d="M3.4 7.6a8.6 8.6 0 0 1 2.1-3.4M20.6 7.6a8.6 8.6 0 0 0-2.1-3.4"/>
              <path class="bell__slash" data-slash d="M4.6 3.8l14.8 16.4" pathLength="1"/>
            </svg>
          </button>
        </div>

        <div class="menu" data-menu role="dialog" aria-label="Episode alerts" aria-hidden="true">
          <span class="menu__title">Notify me about</span>
          <div class="seg" data-seg role="radiogroup" aria-label="Notify me about">
            <span class="seg__mark" data-mark aria-hidden="true"></span>
            <button class="seg__opt" type="button" role="radio" aria-checked="true" data-opt="all">All episodes</button>
            <button class="seg__opt" type="button" role="radio" aria-checked="false" data-opt="best">Highlights</button>
            <button class="seg__opt" type="button" role="radio" aria-checked="false" data-opt="off">Off</button>
          </div>
          <p class="menu__hint" data-hint>Every new episode, the moment it is out.</p>
        </div>
      </div>

      <div class="latest">
        <span class="latest__play" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M5.5 3.6v8.8l7-4.4z"/></svg></span>
        <span class="latest__text"><b>The quiet hour</b> <span>Latest <span aria-hidden="true">·</span> 41 min</span></span>
      </div>
      <p class="note" data-note aria-live="polite"></p>
    </section>
    <svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></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>

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.

37 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 “Podcast follow 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 black page sits the dark show card of an invented podcast, Field Notes After Dark by Hollowmere Audio, with the lilac ringed cover, the follower count and the latest episode. Below it, the cream «Follow» pill. A light crosses it on hover; pressed, it squashes and turns dark, the label leaves upwards as «Following» comes in from below with a lilac tick drawing itself, and the pill narrows on a spring. The follower count rolls from 12,480 to 12,481, a sheen crosses the cover, and a round bell slides out beside the pill and rings. Tapped, the bell opens a frosted glass panel above it: «Notify me about», with three levels. The mark under the chosen level slides, stretching, and settles with a small overshoot; the line below changes, the bell is full with its waves for All episodes, outlined for Highlights, struck through for Off, and rings while alerts stay on. Point at «Following» and the label turns into Unfollow; one click and the pill goes back to cream, the bell slides away and the count drops by one. While nobody touches it, a drawn pointer plays the whole story.

How it works

Three faces in one pill

Inside the pill sit three faces on top of each other, Follow, Following and Unfollow. GSAP swaps them by sliding them vertically and changes the pill’s width by measuring the face that arrives, on a back.out curve with the overshoot of SPRING, together with the background colour.

The bell that slides out

Beside the pill there is a holder zero pixels wide: on follow it widens to 46 pixels and the bell inside goes from scale 0.4 to 1. It rings with a run of rotations around its hook (svgOrigin 12 4) while the clapper swings the other way.

The mark that stretches

The mark under the levels first widens towards the new level, covering part of the gap between the two, then narrows to the right size on a back.out: it looks like a drop travelling. It is measured with offsetLeft against the row.

The rolling count

The follower count is one span per digit; only the digits that change leave upwards and come back from below, one after the other from the right.

Values to change

NameFileDefaultWhat it changes
MORPHscript.js0.55Seconds for the pill to turn from Follow into Following.
SPRINGscript.js1.6How far the pill and the bell pass their size before settling (0 none).
PRESSscript.js0.94How much the pill squashes under the finger (1 never).
RINGscript.js1How wide the bell swings when it rings (0 still).
SLIDEscript.js0.42Seconds for the mark to slide to another alert level.
STRETCHscript.js1How much the mark stretches while it travels (0 none).
GLOWscript.js1How bright the lilac glow is once you follow (0 none).
SPEEDscript.js1Speed of the drawn pointer: 2 twice as fast, 0.5 half.

Try them in the Playground

When to use it

On the page of a podcast, a channel, a newsletter or a creator: whoever follows picks right away how often to be alerted, without opening the settings.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide, the cover and the headline are sized on the height too, the panel stays inside the card. Without hover, Unfollow comes with a tap on the pill.

With reduced motion

Nothing moves: the pill’s faces and the panel arrive as fades, the bell does not ring, the mark goes straight to its place and the digits change without rolling; the pilot has no pointer and only shows the states one after another.

Pitfalls

  • The width of the faces is measured with an invisible copy once the font has arrived (document.fonts.ready): measured earlier, the pill stayed too narrow.
  • The bell turns around its hook with svgOrigin: with a percentage transformOrigin the SVG spun around its corner.
  • The closed panel stays in the html with visibility hidden, so the Tab key never lands inside it.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.2 KB; the libraries: GSAP 28 KB.

Testing

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