
Logo loader
Transitions, SVG, Text
The frosted glass notification of Kite, an invented messaging app, on a near black page with two pools of colour drifting slowly behind the glass. The message has just arrived and its sender corrects it after sending: a caret appears inside the notification, the typo is backspaced and retyped letter by letter, then the dinner time changes. The corrected words catch a light that fades, an Edited tag springs in with a pencil that draws itself and the calendar card underneath rolls its time like an odometer. Pressed, the notification opens and shows the original with the changed words struck through, and two quick replies.
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>
<!--
"Self-correcting message" 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 message notification that corrects itself after sending</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">
<span class="pool pool--a" data-pool aria-hidden="true"></span>
<span class="pool pool--b" data-pool aria-hidden="true"></span>
<span class="grain" aria-hidden="true"></span>
<!-- a message from Kite, an invented messaging app, lands as a notification of frosted glass. A moment later the
sender edits it after sending: a caret appears inside the notification, the typo is backspaced and retyped,
then the time of the dinner. The corrected words catch a wash of light, an Edited tag springs in, and the
calendar card under it rolls its time to match. Tapped, the notification opens to show the original with the
changed words struck through, and two quick replies -->
<div class="stack" data-stack>
<div class="mover" data-mover>
<article class="note" data-note tabindex="0" role="button" aria-expanded="false" aria-label="Message from Maya Okafor, tap to show the edit">
<span class="note__light" aria-hidden="true"></span>
<header class="note__top">
<span class="note__app">
<svg class="note__icon" viewBox="0 0 20 20" aria-hidden="true">
<rect width="20" height="20" rx="5.5" class="note__icon-bg"/>
<path d="M10 3.6 15.2 9 10 14.2 4.8 9Z" class="note__kite"/>
<path d="M10 14.2c.4 1.2-.6 1.6-.2 2.4" class="note__tail"/>
</svg>
<span class="note__appname">KITE</span>
</span>
<span class="note__meta">
<span class="note__edited" data-edited>
<svg viewBox="0 0 12 12" aria-hidden="true"><path data-pencil pathLength="1" d="M2.2 9.8 2.6 7.6 7.9 2.3a1 1 0 0 1 1.4 0l.4.4a1 1 0 0 1 0 1.4L4.4 9.4Z"/></svg>
<span>Edited</span>
</span>
<span class="note__time">now</span>
</span>
</header>
<div class="note__who">
<span class="note__avatar" aria-hidden="true"><span>MO</span></span>
<span class="note__names">
<span class="note__name">Maya Okafor</span>
<span class="note__sub">
<span class="note__thread" data-thread>Dinner tonight</span>
<span class="note__typing" data-typing>editing the message</span>
</span>
</span>
</div>
<p class="note__msg" data-msg>Running <span class="w" data-w="a">lte</span>, table’s booked for <span class="w" data-w="b">8:30</span> at Osteria Lume.</p>
<div class="note__more" data-more>
<div class="note__more-in">
<span class="note__rule" aria-hidden="true"></span>
<p class="note__label">Original</p>
<p class="note__orig">Running <span class="del"><span data-old="a">lte</span><span class="strike" data-strike></span></span>, table’s booked for <span class="del"><span data-old="b">8:30</span><span class="strike" data-strike></span></span> at Osteria Lume.</p>
<div class="note__replies">
<button class="chip" type="button" data-chip>Got it</button>
<button class="chip chip--main" type="button" data-chip data-send>
<span class="chip__face" data-chip-face>See you at <span data-reply-time>9:15</span></span>
<span class="chip__sent" data-chip-sent>
<svg viewBox="0 0 14 14" aria-hidden="true"><path data-chip-check pathLength="1" d="M3 7.4l2.6 2.6L11 4.4"/></svg>
Sent
</span>
</button>
</div>
</div>
</div>
</article>
</div>
<div class="mover mover--cal" data-cal-mover>
<article class="cal" data-cal>
<span class="cal__icon" aria-hidden="true"><span class="cal__mon">NOV</span><span class="cal__day">2</span></span>
<span class="cal__text">
<span class="cal__title">Dinner with Maya</span>
<span class="cal__line">Osteria Lume<span class="cal__sep" aria-hidden="true"></span><span class="cal__clock" data-clock aria-label="8:30 PM"></span> PM</span>
</span>
<span class="cal__state">
<span class="cal__tonight" data-tonight>Tonight</span>
<span class="cal__updated" data-updated>Updated</span>
</span>
</article>
</div>
</div>
<p class="sr" aria-live="polite" data-live></p>
</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.
53 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 “Self-correcting message” from Animorio and fit it into my siteThe notification is a pane with backdrop-filter (blur and saturation), a light gradient at the top, a one pixel edge catching the light above and three soft shadows below. Behind it two very blurred pools of colour are moved slowly back and forth by GSAP, so the glass has something to blur; over everything sits a fine SVG grain.
The two words to correct are spans made of one span per letter. The direction is a GSAP timeline with a call for every key: the caret enters the word, deletes only what changes (the common start stays) and types the rest; every new letter rises 4 px out of a small blur and the caret takes a two pixel step. At rest it blinks with a stepped tween.
Each word's background is a gradient whose width and alpha are two CSS variables, --ws and --wa: GSAP spreads the light from the left in 0.38 s and fades it in a little over a second. With box-decoration-break the light follows the word even when it wraps.
The Edited tag opens from zero width to auto with a back.out, and the pencil draws itself with stroke-dashoffset on pathLength 1. The calendar time is a column of ten digits for each figure, moved with yPercent ten per digit, one column after the other.
Pressed, the notification sinks to 97.5% and comes back with an elastic.out; the hidden part goes from zero height to auto, the coral lines trace themselves with scaleX and the replies rise staggered. The main reply swaps its words for ‘Sent’ and the check. A real touch stops the loop, puts the notification already corrected and from there it opens and closes by hand.
| Name | File | Default | What it changes |
|---|---|---|---|
TYPO | script.js | 'lte' | The word sent wrong. |
FIXED | script.js | 'late' | The same word corrected. |
OLD_TIME | script.js | '8:30' | The time sent first. |
NEW_TIME | script.js | '9:15' | The time after the edit (same shape, so the digits roll). |
TYPE_SPEED | script.js | 11 | Letters per second while correcting. |
PAUSE | script.js | 1.2 | Seconds the message is read before the correction. |
SPRING | script.js | 1 | How springy the arrivals and the press are. |
WASH | script.js | 0.3 | How bright the light on the corrected words is. |
HOLD | script.js | 1.8 | Seconds the notification stays open after the reply. |
SPEED | script.js | 1 | 2 = the whole loop twice as fast, 0.5 = half. |
LOOP | script.js | true | Plays it again until someone touches it. |
For the landing page of a messaging app or a support chat, to show a feature like ‘edit after sending’, for the section of a booking or calendar app that updates itself when the time changes.
The same animation with adapted sizes: the notification is nearly as wide as the box, margins and letters shrink with the height, and open, with the replies, it all fits. A finger opens and closes it; the light that follows the pointer is not there.
Nothing moves: the notification and the calendar fade in, each corrected word fades out and comes back already right, and the Edited tag, the calendar time, the opened part and the sent reply all change with a fade.
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.
Tested on 2 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.