
The inchworm menu
Menus, Hover, Transitions
The «Was this helpful?» box at the foot of a help page, pared down to a white pill with two small chips, Yes and No: on press the colour of the chosen answer floods out from under the chip and fills the whole pill on a spring, the question steps aside and a drawn tick and the thank-you take its place. «Undo» pours the colour back into the chip it came from.
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>
<!--
"Page feedback" 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 page feedback that fills from your answer</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">
<!-- one gesture: the answer you press fills the whole pill and becomes the thank-you -->
<div class="fb" data-fb role="group" aria-label="Page feedback">
<span class="fb__fill" data-fill aria-hidden="true"></span>
<div class="fb__ask" data-ask>
<span class="fb__q" data-q>Was this helpful?</span>
<span class="fb__chips">
<button class="fb__chip" type="button" data-choice="yes"><span class="fb__chipword">Yes</span></button>
<button class="fb__chip" type="button" data-choice="no"><span class="fb__chipword">No</span></button>
</span>
</div>
<div class="fb__done" data-done aria-hidden="true">
<svg class="fb__tick" viewBox="0 0 20 20" aria-hidden="true"><path data-tick d="M5 10.4 8.6 14 15.2 6.6"/></svg>
<span class="fb__thanks" data-thanks>Thanks for the feedback</span>
<span class="fb__rule" data-rule aria-hidden="true"></span>
<button class="fb__undo" type="button" data-undo tabindex="-1">Undo</button>
</div>
<span class="fb__live" aria-live="polite" data-live></span>
</div>
</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.
20 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 “Page feedback” from Animorio and fit it into my siteThe fill is a single absolute span inside the pill, which has overflow hidden and a full radius. On press it is placed exactly over the pressed chip, measured with offsetLeft and offsetTop walking up to the pill (those measures ignore running transforms), and the chip turns transparent: it looks as if the chip itself took the colour.
The fill goes from that box to the whole pill’s by animating left, top, width and height with expo.inOut: it starts slowly, as if the colour were pushing, and reaches the edges decisively. At the end width and height switch to 100%, so resizing the window never leaves it short.
When the colour touches the edges the pill goes to scaleX 1.012 and scaleY 0.965 in 0.12 seconds and back to 1 with elastic.out: that is the one-pixel squash. The tick draws with strokeDashoffset down to minus 0.8, a hair past the end, and returns to zero.
The thank-you rises from 10 pixels below with the wdth axis at 78 and the weight at 420 and lands at 100 and 540 with back.out; the thin rule grows in height and «Undo» arrives from the right last. Both rows sit in the same grid cell, so the pill never changes width.
Undo walks the same road backwards: it measures the chip at rest, takes the fill back into its box with the same curve and only then turns it off, while the chip gets its grey back; the question and the other chip return with back.out, a tenth of a second apart.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #1f7a57 | The colour that fills the pill after Yes. |
NO_COLOR | script.js | #0b0c0e | The colour that fills the pill after No. |
QUESTION | script.js | Was this helpful? | The question on the pill. |
THANKS_YES | script.js | Thanks for the feedback | The line after Yes. |
THANKS_NO | script.js | We will make it better | The line after No. |
SPRING | script.js | 1 | How springy the flood and the pill are: 0.4 calm, 2 very bouncy. |
SPEED | script.js | 1 | The speed of everything: 2 twice as fast, 0.5 half. |
HOLD | script.js | 2.4 | How many seconds the thank-you stays when the pill answers by itself. |
AUTO | script.js | true | The pill answers by itself until someone touches it. |
At the foot of a help center article, a documentation page or an assistant’s answer: it asks for an opinion in a single tap and says thanks without opening anything.
On the phone the pill, the chips and the text take their size from the screen (clamp on the shorter side) and fit even at 320 pixels; there is no hover, everything else is the same.
The colour fills the pill with a fade, without spreading, and the question and the thank-you swap with a fade; no springs or movement.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.1 KB; the libraries: GSAP 28 KB.
Tested on 1 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.