
Speeding marquee
Scroll, Text, Hover
The editor of a made-up writing app, Penhold, on warm paper: in a short draft three words get a wavy line that draws itself underneath, two spelling mistakes in coral and one wordy phrase in violet. Tap a word and a glass card rises with the suggestion; pick it and the old word becomes the right one letter by letter: the letters they share slide to their new place with a little hop (the i and the e of recieve swap places), the ones not needed fall away, the missing ones rise in, and the word stays green for a moment before going back to ink. The count in the corner rolls from 3 to All clear with a check that draws itself and the clarity meter fills up.
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>
<!--
"Spellchecker fix" 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 editor with the spellchecker that fixes the word letter by letter</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the editor of a made-up writing app, Penhold. Three words are flagged with a wavy line: two spelling mistakes
and one wordy phrase. Click a flagged word and a glass card offers the fix; pick it and the letters of the old
word slide, drop and rise into the new one, while the count in the top corner rolls down to All clear -->
<section class="doc" data-doc aria-label="Penhold editor">
<span class="doc__sheen" aria-hidden="true"></span>
<header class="doc__head">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M10 2.5l4.6 6.2-4.6 8.8-4.6-8.8z" />
<path d="M10 2.5v9.2" />
<circle cx="10" cy="11.9" r="1.3" />
</svg>
<span class="brand__name">Penhold</span>
</span>
<span class="count" data-count aria-live="polite">
<span class="count__icon" aria-hidden="true">
<svg viewBox="0 0 16 16">
<circle class="count__ring" cx="8" cy="8" r="6.2" />
<path class="count__check" data-check pathLength="1" d="M5 8.3l2 2 4-4.4" />
</svg>
<span class="count__num" data-num>3</span>
</span>
<span class="count__words">
<span class="count__word" data-word-left>suggestions</span>
<span class="count__word count__word--clear" data-word-clear>All clear</span>
</span>
</span>
</header>
<p class="doc__kicker">Draft · Beta launch note</p>
<h1 class="doc__title">Your new build is on its way</h1>
<div class="doc__body" data-body>
<p class="text">Thanks for joining the beta. You will
<span class="flag flag--spell" data-flag="0" data-fix="receive" data-kind="Spelling" data-why="Did you mean">recieve</span>
the new build on Friday, and it
<span class="flag flag--spell" data-flag="1" data-fix="definitely" data-kind="Spelling" data-why="Did you mean">definately</span>
fixes the sync bug. Your notes are
<span class="flag flag--style" data-flag="2" data-fix="invaluable" data-kind="Clarity" data-why="Say it in one word">very important</span>
to us, so reply any time.<span class="caret" data-caret aria-hidden="true"></span></p>
</div>
<footer class="doc__foot">
<span class="meter">
<span class="meter__label">Clarity</span>
<span class="meter__bar"><span class="meter__fill" data-fill></span></span>
<span class="meter__val" data-score>68</span>
</span>
<span class="doc__words">31 words</span>
</footer>
<!-- the glass card with the fix, placed over the flagged word -->
<div class="pop" data-pop role="dialog" aria-label="Suggestion" aria-hidden="true">
<span class="pop__kind" data-pop-kind>Spelling</span>
<span class="pop__why" data-pop-why>Did you mean</span>
<div class="pop__row">
<button class="pop__fix" type="button" data-pop-fix>
<span class="pop__fixword" data-pop-word>receive</span>
<svg class="pop__enter" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.5 4v4.5h-8M7 6l-2.6 2.5L7 11" /></svg>
</button>
<button class="pop__ignore" type="button" data-pop-ignore>Ignore</button>
</div>
</div>
</section>
<svg class="pointer" data-pointer viewBox="0 0 20 20" aria-hidden="true">
<path d="M4 2.6l11.6 9.1-5.3.6-2.6 4.9z" />
</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>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
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 “Spellchecker fix” from Animorio and fit it into my siteEach flagged word is an inline-block with white-space: pre, and its letters are inline-block spans. The space of very important is a letter like the others: the phrase never wraps in the middle.
pairUp() pairs every letter of the new word with the nearest still free matching letter of the old one, by position, regardless of order: so in recieve the i and the e cross instead of vanishing and coming back. Old letters with no pair fall, new letters with no pair rise.
Measure the x of the old letters, write the new word, measure the new x; each paired letter starts offset by the difference and goes back to zero with back.out, with an arc in keyframes (up with sine.out, down with bounce.out) as high as ARC for its distance. The falling letters are absolutely positioned copies at the old x, removed at the end.
The word goes from its old width to the new one with power3.inOut and clearProps at the end: the rest of the line slides instead of jumping.
An 8 by 5 pixel SVG repeated horizontally as a background-image: it draws by taking background-size from 0% to 100% with the position on the left, and pulls back by moving the position to the right and taking the size to zero. It follows the word even when the line wraps, with no maths.
The glass card is measured each time above the word, moves below if it would leave the card and stays inside the edges; transformOrigin sits on the word. The pilot is a chain of Promises on gsap.delayedCall that stops as soon as a real pointer arrives (event.isTrusted) and starts again from the draft after seven quiet seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
MORPH | script.js | 0.62 | Seconds for the shared letters to slide to their new place. |
STAGGER | script.js | 0.03 | Seconds between one letter and the next. |
ARC | script.js | 0.24 | How high a sliding letter hops, relative to the text size. |
DROP | script.js | 0.55 | How far the letters not needed fall, relative to the text size. |
POP_SPRING | script.js | 1.6 | How much the glass card overshoots when it rises. |
HOLD | script.js | 2.6 | Seconds All clear stays before the pilot starts again. |
LOOP | script.js | true | Left alone, it fixes the words by itself and starts again. |
For a text editor, a notes or writing app, a CMS, an app's comment field, or the page of an AI writing assistant: wherever a correction is suggested and you want to show what changes in the word, instead of swapping it at once.
The same animation with adapted sizes: the card takes almost the whole width, title and text scale with the screen's height, the kicker and the word count hide under 420 pixels. The glass card stays inside the edges and goes below the word if there is no room above. You tap the word with your finger.
No sliding, falling or hopping letters and no pointer: the glass card and the new word arrive as a fade, the wavy lines are already there, the count and the meter change without animation.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Newsreader (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.9 KB; the libraries: GSAP 28 KB.
Tested on 8 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.