Skip to content
animorio
IT
Back to the library

Visual voicemail

Hover, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 7.2 KBGSAP 28 KBFreeDownload the zip

A phone’s voicemail, made to be read: the list of messages with who called, when and for how long. Tap one and the row springs open, the others dim, the waveform rises and starts playing, lighting up bar after bar, the time counts up and the transcript arrives word by word. Once it has been heard the New tag leaves and the count at the top rolls. Call back makes the handset ring.

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>
<!--
  "Visual voicemail" 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>Visual voicemail</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 visual voicemail of a phone: the list of messages; the one you tap opens, its waveform plays,
         the transcript arrives word by word and Call back rings the caller -->
    <section class="vm" data-vm aria-label="Voicemail">
      <header class="vm__top">
        <h1>Voicemail</h1>
        <span class="vm__count"><span data-outcount>2 new</span></span>
      </header>
      <ul class="vm__list" data-list>
        <li class="vm__row" data-row data-secs="12" data-new>
          <button class="vm__head" type="button" data-head aria-expanded="false" aria-controls="vm-panel-0">
            <span class="vm__avatar" aria-hidden="true">MO</span>
            <span class="vm__who"><b>Maya Okafor</b><span>Today, 9:14 · 0:12</span></span>
            <span class="vm__tag" data-tag>New</span>
            <svg class="vm__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6.200 8 10l4-3.800"></path></svg>
          </button>
          <div class="vm__panel" id="vm-panel-0" data-panel>
            <div class="vm__inner" data-inner>
              <div class="vm__player">
                <button class="vm__play" type="button" data-play aria-label="Play the message from Maya Okafor">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path class="vm__tri" d="M5.200 3.300 12.600 8l-7.400 4.700Z"></path><path class="vm__bars" d="M5 3.500v9M11 3.500v9"></path></svg>
                </button>
                <span class="vm__wave" data-wave aria-hidden="true"></span>
                <span class="vm__time" data-outtime>0:00</span>
              </div>
              <p class="vm__script" data-script>Hi, it’s Maya from the print studio. Your posters are ready, you can pick them up any time after two.</p>
              <div class="vm__actions">
                <button class="vm__call" type="button" data-call data-who="Maya">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5.300 2.300 6.600 5.200 5.200 6.400a7.400 7.400 0 0 0 4.400 4.400l1.200-1.400 2.900 1.300v1.800a1.200 1.200 0 0 1-1.300 1.200A10.400 10.400 0 0 1 2.300 3.600 1.200 1.200 0 0 1 3.500 2.300Z"></path></svg>
                  <span class="vm__calltext"><span data-outcall>Call back</span></span>
                </button>
                <span class="vm__note">Transcribed on device</span>
              </div>
            </div>
          </div>
        </li>
        <li class="vm__row" data-row data-secs="9" data-new>
          <button class="vm__head" type="button" data-head aria-expanded="false" aria-controls="vm-panel-1">
            <span class="vm__avatar" aria-hidden="true">LD</span>
            <span class="vm__who"><b>Lindqvist Dental</b><span>Today, 8:02 · 0:09</span></span>
            <span class="vm__tag" data-tag>New</span>
            <svg class="vm__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6.200 8 10l4-3.800"></path></svg>
          </button>
          <div class="vm__panel" id="vm-panel-1" data-panel>
            <div class="vm__inner" data-inner>
              <div class="vm__player">
                <button class="vm__play" type="button" data-play aria-label="Play the message from Lindqvist Dental">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path class="vm__tri" d="M5.200 3.300 12.600 8l-7.400 4.700Z"></path><path class="vm__bars" d="M5 3.500v9M11 3.500v9"></path></svg>
                </button>
                <span class="vm__wave" data-wave aria-hidden="true"></span>
                <span class="vm__time" data-outtime>0:00</span>
              </div>
              <p class="vm__script" data-script>A reminder of your appointment on Thursday at ten thirty. Please call us back to confirm.</p>
              <div class="vm__actions">
                <button class="vm__call" type="button" data-call data-who="the office">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5.300 2.300 6.600 5.200 5.200 6.400a7.400 7.400 0 0 0 4.400 4.400l1.200-1.400 2.900 1.300v1.800a1.200 1.200 0 0 1-1.300 1.200A10.400 10.400 0 0 1 2.300 3.600 1.200 1.200 0 0 1 3.500 2.300Z"></path></svg>
                  <span class="vm__calltext"><span data-outcall>Call back</span></span>
                </button>
                <span class="vm__note">Transcribed on device</span>
              </div>
            </div>
          </div>
        </li>
        <li class="vm__row" data-row data-secs="7">
          <button class="vm__head" type="button" data-head aria-expanded="false" aria-controls="vm-panel-2">
            <span class="vm__avatar" aria-hidden="true">TR</span>
            <span class="vm__who"><b>Tomás Rey</b><span>Yesterday · 0:07</span></span>
            
            <svg class="vm__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6.200 8 10l4-3.800"></path></svg>
          </button>
          <div class="vm__panel" id="vm-panel-2" data-panel>
            <div class="vm__inner" data-inner>
              <div class="vm__player">
                <button class="vm__play" type="button" data-play aria-label="Play the message from Tomás Rey">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path class="vm__tri" d="M5.200 3.300 12.600 8l-7.400 4.700Z"></path><path class="vm__bars" d="M5 3.500v9M11 3.500v9"></path></svg>
                </button>
                <span class="vm__wave" data-wave aria-hidden="true"></span>
                <span class="vm__time" data-outtime>0:00</span>
              </div>
              <p class="vm__script" data-script>Hey, I’m running ten minutes late. Save me a seat by the window.</p>
              <div class="vm__actions">
                <button class="vm__call" type="button" data-call data-who="Tomás">
                  <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5.300 2.300 6.600 5.200 5.200 6.400a7.400 7.400 0 0 0 4.400 4.400l1.200-1.400 2.900 1.300v1.800a1.200 1.200 0 0 1-1.300 1.200A10.400 10.400 0 0 1 2.300 3.600 1.200 1.200 0 0 1 3.500 2.300Z"></path></svg>
                  <span class="vm__calltext"><span data-outcall>Call back</span></span>
                </button>
                <span class="vm__note">Transcribed on device</span>
              </div>
            </div>
          </div>
        </li>
      </ul>
    </section>
    <span class="live" aria-live="polite" data-live></span>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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>

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.

36 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Visual voicemail” 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 black, with a faint periwinkle light behind it, a dark card whose edges catch the light: at the top “Voicemail” and the count of new messages, below three rows with initials in a circle, the name (bold if unheard), the time, the length and the New tag. Tap a row and its panel springs open while the chevron turns, the other rows dim, the circle takes a periwinkle ring; the Play button and the bars of the waveform rise one after the other, then the message starts: the bars already heard turn periwinkle with a small kick, the time moves on and the transcript appears word by word. At the end the New tag closes, the name goes light again and the count rolls from “2 new” to “1 new”. Tap another row and the first one closes. Call back tightens, its label rolls to “Calling Tomás” and the handset rings twice.

How it works

The row that opens

Each row is a button with aria-expanded and a zero-height panel below it. On opening GSAP takes the panel’s height to that of its content, measured at that moment, with a small overshoot; opening another row closes the first.

One number for the playback

Playback is a number from 0 to 1 animated at constant speed. How many bars of the waveform are lit, the time shown and how many words of the transcript are visible all depend on it: they cannot drift apart.

The waveform

The bars are created by the script, as tall as the product of two sines: each message has its own shape, always the same. When a bar lights up it takes a taller scale for a moment and comes back on a spring.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#8b9bffThe colour of the part already heard, of the New tags and of Call back.
PLAYscript.js4.2How many seconds the demo takes to play a whole message.
OPENscript.js0.6How long the chosen message takes to open.
BARSscript.js38How many bars each message’s waveform has.

Try them in the Playground

When to use it

In a phone app, a switchboard or a customer service tool, in the voice inbox of a dashboard; and wherever there is a list of recordings to open and play one at a time: voice notes, recorded calls, the episodes of a podcast.

On phones

The card is at most 320 pixels wide and narrows with the screen; open it is about 370 pixels tall. The rows are 52 pixels tall and tappable all over; the waveform adapts to the width, the bars stay the same.

With reduced motion

No springs or rises: the chosen row is open at once, the waveform takes its colour and the words appear without moving while the time goes on. The handset does not ring, only the label changes. The demo’s pointer does not start.

Pitfalls

  • The panel’s height is measured when it opens and again on every resize: the transcript wraps differently at each width.
  • The transcript is split into words hidden from screen readers; the whole text sits in the paragraph’s aria-label, otherwise it would be read in pieces.
  • An unheard message is not told by colour alone: its name is bold and it carries the written New tag.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 26 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 animations