Skip to content
animorio
IT
Back to the library

Chat read receipts

Hover, Transitions, SVGGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

People searched for “read receipt” and “typing indicator” and found something else. A conversation in a clean messaging app, in a white card on warm white: you type in the field, Send, and the bubble leaves the field and rises into place on a spring. Below it the status rolls from Sending, with a small drawn clock, to Sent with one tick, to Delivered with two ticks that draw their stroke, to Read with the ticks turning blue, while Mira’s small avatar curves down from the previous message to the last one read. Then a bubble with a thin wavy line that draws and erases itself says she is typing, and opens into her reply. Hovering a read message shows the time it was read.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React tab holds the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Chat read receipts" 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>Chat read receipts</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">
    <!-- a conversation in a made-up messaging app: the message leaves the field and springs into place, the status
         below rolls from Sending to Sent, Delivered and Read, the other person's avatar slides down to the last read
         message, then a thin wavy line says she is typing and her reply arrives -->
    <section class="chat" data-chat aria-label="Conversation with Mira Lund">

      <header class="top">
        <button class="top__back" type="button" aria-label="Back"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.4L5.4 8l4.6 4.6"></path></svg></button>
        <span class="face face--big" aria-hidden="true"><span class="face__in" data-initials>ML</span></span>
        <div class="top__who">
          <span class="top__name" data-name>Mira Lund</span>
          <span class="top__sub" data-sub><span class="top__line" data-sub-active>Active now</span><span class="top__line top__line--typing" data-sub-typing aria-hidden="true"></span></span>
        </div>
        <button class="top__call" type="button" aria-label="Call"><svg viewBox="0 0 18 18" aria-hidden="true"><path d="M6.2 2.8l1.6 3.3-1.5 1.2a8.6 8.6 0 0 0 4.4 4.4l1.2-1.5 3.3 1.6-.5 2.3c-.2.7-.8 1.1-1.5 1.1C7.6 15 3 10.4 2.8 4.8c0-.7.4-1.3 1.1-1.5z"></path></svg></button>
      </header>

      <div class="thread" data-thread>
        <div class="list" data-list role="log" aria-live="polite"></div>
      </div>

      <form class="composer" data-form autocomplete="off">
        <span class="composer__plus" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M8 3.5v9M3.5 8h9"></path></svg></span>
        <label class="field">
          <span class="sr">Message</span>
          <input class="field__input" data-input type="text" maxlength="80" placeholder="Message" enterkeyhint="send">
          <span class="field__mirror" data-mirror aria-hidden="true"></span>
          <span class="field__caret" data-caret aria-hidden="true"></span>
        </label>
        <button class="send" type="submit" data-send aria-label="Send" disabled>
          <span class="send__bg" data-send-bg aria-hidden="true"></span>
          <svg class="send__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 12.6V3.6M4.2 7.2L8 3.4l3.8 3.8"></path></svg>
        </button>
      </form>
    </section>
  </main>

  <template id="t-out">
    <div class="msg msg--out">
      <div class="bubble bubble--out"><span class="bubble__text"></span><span class="readchip" aria-hidden="true"></span></div>
      <div class="meta">
        <svg class="tick" viewBox="0 0 18 12" aria-hidden="true">
          <g class="tick__clock"><circle cx="6" cy="6" r="4.4"></circle><path class="tick__hand" d="M6 6V3.3"></path><path d="M6 6h1.9"></path></g>
          <path class="tick__one" d="M2.2 6.4l2.6 2.6 6.2-6.3" pathLength="1"></path>
          <path class="tick__two" d="M8.1 8.2l.8.8 6.2-6.3" pathLength="1"></path>
        </svg>
        <span class="meta__label"><span class="meta__word"></span></span>
        <span class="meta__slot"></span>
      </div>
    </div>
  </template>
  <template id="t-in">
    <div class="msg msg--in">
      <div class="bubble bubble--in"><span class="bubble__text"></span></div>
    </div>
  </template>

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

27 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 “Chat read receipts” 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 warm white background, a white card with a soft layered shadow: at the top the back arrow, Mira Lund’s initials avatar, “Active now” and a line phone icon; in the middle the conversation, with “Today 16:35”, Mira’s question about the flower market and the reply already read with her avatar under it; at the bottom the plus, the Message field and the round send button with the arrow. Letters enter the field one at a time with a blue caret and the button lights up blue on an elastic. Pressed, it squeezes and the arrow hops; the text leaves the field, takes the ink background as it becomes a bubble and rises into place with a bounce while the conversation scrolls up. Under the bubble Sending appears with a small spinning clock, then the word rolls up into Sent and the clock gives way to a tick that draws itself, then Delivered with the second tick, then Read: the ticks turn blue with a little hop and Mira’s avatar leaves the previous message and curves down under the new one, stretching as it travels and squashing as it lands; the row it leaves closes. The second message does the same. Then “Active now” rolls into “Mira is typing…” with the letters lighting in a wave, and a small bubble with a thin wavy line that draws and erases itself breathes; then it widens into the reply. Hovering a read message slides out a “Read 16:42” pill beside it.

How it works

A list resting on the bottom

Messages live in an absolute list pinned to the bottom of the thread: anything new makes it grow upwards. Its height is measured before and after adding, the list is held down by the difference with y and then let go: the conversation scrolls up like a real app.

The bubble that leaves the field

The field and the bubble already in place are measured, and the bubble starts shifted onto the field’s text: x with power3.out, y with back.out for the bounce, the ink background and the text colour arriving together.

Drawn ticks

One svg holds the small clock and both ticks on pathLength 1 paths: the ticks draw with strokeDashoffset from 1 to 0 (autoRound off), the colour is currentColor and turns to the accent at Read with an elastic hop.

The rolling word

The old word rises and fades, the new one comes from below with back.out, and the window changes width from the old word’s measure to the new one’s.

The avatar’s curve

The avatar lives in the list and travels along a quadratic Bézier curve with the control point pushed right; the target is read every frame because the row it leaves closes while it travels.

The typing bubble

The wavy line has dasharray 1 1 and its dashoffset loops from 1 to −1: it draws and erases itself. When the reply arrives the bubble goes from its own size to the text’s with back.out and the text fades in.

Values to change

NameFileDefaultWhat it changes
CONTACTscript.jsMira LundThe other person’s name.
FIRSTscript.jsI’ll bring the good coffeeThe first message.
SECONDscript.jsAnd the tote bags this timeThe second message.
REPLYscript.jsPerfect. I’ll save us a spot by the tulipsThe reply.
READ_ATscript.js16:42The time the first message is read.
TYPE_SPEEDscript.js17Letters per second in the field.
SPRINGscript.js1.6How far the bubble overshoots as it lands.
SENT_AFTERscript.js0.7When the first tick arrives.
DELIVERED_AFTERscript.js0.8When the second tick arrives.
READ_AFTERscript.js1.1When the ticks turn blue and the avatar comes down.
TYPING_TIMEscript.js2.2How long the typing bubble stays.
LOOP_PAUSEscript.js2.4The pause before the loop starts again.

Try them in the Playground

When to use it

In the chat of a messaging app, in a shop’s or hotel’s customer support, in messages between users of a marketplace or booking app, or on the page of a messaging product that shows how it works.

On phones

The card takes the width with a margin and the window height up to 520 pixels; the thread rests on the bottom and older messages leave at the top under a fade, so it always fits the box. The bubble’s flight and the avatar’s path are measured each time, and the avatar is put back in place on resize. Tapping a read message shows the time.

With reduced motion

No flights or springs: the conversation is already at its end, with the messages read, the blue ticks, the avatar under the last one and the reply; what you send by hand fades in and the states change without rolling.

Pitfalls

  • A status row always open under every message left uneven gaps between bubbles: it now opens only while it holds the status or the avatar, and closes when the avatar leaves.
  • Closing the row left behind moved the avatar’s target mid-flight: the curve reads the landing point again every frame.
  • “Mira is typing…” absolutely placed over “Active now” was clipped to the shorter line’s width: both lines share one grid cell.
  • A thread with hidden overflow clipped the bubble leaving the field below its edge: the clip is a clip-path that lets it pass underneath, and the top fade is a veil.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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