
The inchworm menu
Menus, Hover, Transitions
The avatar picker in the profile settings of an invented notes app, Fernway, with no photo: a large initials avatar on a soft grainy gradient and, under it, six swatches. Picking a swatch, the new gradient spreads from the centre of the avatar like a drop with a rim of light ahead of it, the disc gives a little and comes back, the initials change weight past the mark and settle, and a thin ring runs to the swatch on a spring, stretching with its speed. The initials can be typed and the letter that changes rolls away. Save draws a check and the small avatar in the top bar takes the new gradient.
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>
<!--
"Initials avatar" 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 initials avatar with the gradient to choose</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" data-stage>
<!-- the profile picture panel of a notes app, Fernway, with no photo: a large initials avatar on a soft grainy
gradient. Picking one of six swatches drops the new gradient from the centre of the avatar, the initials
change weight and settle, a thin ring follows the swatch on a spring; the initials can be typed and roll;
Save draws a check and the small avatar in the header updates -->
<section class="panel" data-panel aria-labelledby="panel-title">
<header class="panel__bar">
<span class="panel__brand">
<svg class="panel__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M4 16.5C4 9.5 8.5 4 16 3.5c-.4 7.4-5.6 12.4-12 13Z"/>
<path class="panel__mark-vein" d="M4.6 15.8 12.2 8"/>
</svg>
<span class="panel__name">Fernway</span>
</span>
<span class="panel__crumb">Settings</span>
<span class="mini" data-mini aria-label="Your avatar">
<span class="mini__base" data-mini-base></span>
<span class="mini__drop" data-mini-drop></span>
<span class="mini__grain" aria-hidden="true"></span>
<span class="mini__letters" data-mini-letters aria-hidden="true">MO</span>
</span>
</header>
<div class="panel__body">
<div class="av" data-av>
<span class="av__glow" data-glow-a aria-hidden="true"></span>
<span class="av__glow" data-glow-b aria-hidden="true"></span>
<span class="av__disc" data-disc>
<span class="av__base" data-base></span>
<span class="av__drop" data-drop></span>
<span class="av__wave" data-wave aria-hidden="true"></span>
<span class="av__grain" aria-hidden="true"></span>
<span class="av__sheen" data-sheen aria-hidden="true"></span>
<span class="av__letters" data-letters aria-hidden="true"></span>
</span>
</div>
<div class="panel__titles">
<h1 class="panel__title" id="panel-title">Profile picture</h1>
<p class="panel__sub">No photo needed. Pick a colour for your initials.</p>
</div>
<div class="swatches" role="radiogroup" aria-label="Avatar colour" data-swatches>
<span class="swatches__ring" data-ring aria-hidden="true"></span>
<button class="swatch" type="button" role="radio" aria-checked="true" aria-label="Dusk" data-swatch="0"><span class="swatch__face"></span></button>
<button class="swatch" type="button" role="radio" aria-checked="false" aria-label="Lagoon" data-swatch="1" tabindex="-1"><span class="swatch__face"></span></button>
<button class="swatch" type="button" role="radio" aria-checked="false" aria-label="Meadow" data-swatch="2" tabindex="-1"><span class="swatch__face"></span></button>
<button class="swatch" type="button" role="radio" aria-checked="false" aria-label="Amber" data-swatch="3" tabindex="-1"><span class="swatch__face"></span></button>
<button class="swatch" type="button" role="radio" aria-checked="false" aria-label="Iris" data-swatch="4" tabindex="-1"><span class="swatch__face"></span></button>
<button class="swatch" type="button" role="radio" aria-checked="false" aria-label="Graphite" data-swatch="5" tabindex="-1"><span class="swatch__face"></span></button>
</div>
<label class="field">
<span class="field__label">Initials</span>
<span class="field__hint" data-hint>Mara Okafor</span>
<input class="field__input" data-input type="text" value="MO" maxlength="2" autocomplete="off" spellcheck="false" autocapitalize="characters">
</label>
</div>
<footer class="panel__foot">
<span class="panel__state" data-state>No changes</span>
<button class="save" type="button" data-save>
<span class="save__face" data-save-face>
<svg class="save__icon" viewBox="0 0 16 16" aria-hidden="true">
<path class="save__check" data-check pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/>
</svg>
<span class="save__words" data-save-words>Save</span>
</span>
</button>
</footer>
</section>
<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.
46 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 “Initials avatar” from Animorio and fit it into my siteEach gradient is made of three CSS layers: a radial light up on the left, the deep colour radial low on the right and under them a linear with a third tone worked out by color-mix in oklab, so the blend between the two colours stays soft with no grey band. Over it sits the grain: a feTurbulence noise in an SVG written in the CSS, black and white, blended with mix-blend-mode soft-light. Under the disc a second copy of the gradient, blurred and lowered, is a coloured shadow.
The new gradient sits in a layer over the old one with clip-path circle at 50% 50%: GSAP takes the radius from 0 to 74% with power2.out, so the drop starts fast and slows as it reaches the rim. Ahead of it runs a ring of light that grows on the same curve and dies halfway; the disc squashes by 3% and springs back. At the end the gradient moves to the layer below and the radius goes back to zero, ready for the next drop; a new pick halfway finishes the running one at once.
The initials are in variable Mona Sans and each gradient has its own weight (WEIGHTS): GSAP takes wght sixty past the new weight and the wdth axis to 94 in a quarter of a second, then back to the right weight and to 100 with a hand written ease, the response of a damped spring (BOUNCE). The colour of the letters goes to white or dark depending on how pale the gradient is.
The ring is not a tween: a GSAP ticker integrates a spring with STIFFNESS and DAMPING, its step capped at a thirtieth of a second, towards the centre of the swatch read with offsetLeft. The faster it goes the more it stretches sideways and narrows up and down; once it rests the ticker does nothing. On resize the position is worked out again.
Each letter has a slot of its own with overflow hidden: when one changes, the old one leaves upwards blurring and the new one comes in from below on the same spring, while the slot eases from the old width to the new; deleting closes the slot, typing one more letter opens one. The field takes two letters only and makes them capitals.
| Name | File | Default | What it changes |
|---|---|---|---|
INITIALS | script.js | 'MO' | The initials at the start, one or two letters. |
WEIGHTS | script.js | [640, 700, 760, 760, 600, 540] | The weight of the initials on each of the six gradients. |
DROP | script.js | 0.95 | How long the new gradient takes to fill the avatar, in seconds. |
BOUNCE | script.js | 0.5 | The settle of the disc and the letters: lower bounces more, 1 not at all. |
STIFFNESS | script.js | 240 | The spring of the ring under the swatches: higher is quicker. |
DAMPING | script.js | 17 | Lower lets the ring pass the swatch and come back. |
GRAIN | script.js | 0.6 | How strong the grain on the gradients is (0 none). |
PACE | script.js | 1 | The pilot's pauses: higher waits longer between moves. |
LOOP | script.js | true | The pilot plays the story again and again. |
For the profile settings of an app or a dashboard, for the onboarding of people who sign up without uploading a photo, for the account panel of a subscription service or a team app: it gives everyone a good looking, recognisable avatar with no photo, and makes picking a colour feel like a careful gesture. It also works on a product landing page, as a small live demonstration of the personalisation.
The same animation with adapted sizes: every size is a multiple of a unit that is one pixel on a computer and shrinks with the width and the height of the window, so the whole panel fits in the phone box. The swatches are tapped with a finger and the field opens the keyboard in capitals.
Nothing moves: the new gradient fades in instead of spreading as a drop, the letters change with a fade, the weight goes straight to its value, the ring fades out and back in on the chosen swatch, the check and the small avatar change with a fade and the highlight does not follow the pointer.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 7 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.