
The elastic button
Buttons, Hover, Text
The chore rota of a shared flat, in a card on white: four chores in a list and beside each the pill of whoever is on it, yours in colour. “Next week” moves everyone down one on a spring; whoever was at the bottom leaves and comes back in at the top. The week at the top rolls and below you read in words what is yours. The arrow goes back to the week before.
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>
<!--
"Chore rotation" 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>Chore rotation</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">
<!-- the chore rota of a shared flat: four chores with whoever is on them, Next week moving everyone
down one with the last going back to the top, the week rolling and your own chore said in words -->
<section class="cr" data-cr aria-label="House chores">
<header class="cr__head"><strong>House chores</strong><span class="cr__week"><span data-outweek>Week of Nov 30</span></span></header>
<div class="cr__board">
<ul class="cr__list" data-list></ul>
<div class="cr__people" data-people aria-hidden="true"></div>
</div>
<p class="cr__note"><span class="cr__clip"><span data-outnote>This week you’re on the bathroom.</span></span></p>
<div class="cr__acts">
<button type="button" class="cr__btn cr__btn--back" data-back aria-label="Previous week"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M12.500 8h-9M7.300 4.200 3.500 8l3.800 3.800"></path></svg></button>
<button type="button" class="cr__btn cr__btn--next" data-next>Next week<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.500 8h9M8.700 4.200 12.500 8l-3.800 3.800"></path></svg></button>
</div>
</section>
<span class="live" aria-live="polite" data-live></span>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></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.
13 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Chore rotation” from Animorio and fit it into my siteThe chores are a real list. The people sit in a layer above, one pill each, put on their row with a translation.
Everyone’s place is their number plus the week’s, modulo how many chores there are: the rotation needs no stored state.
On changing week every pill goes to its new row on a spring, slightly staggered.
The pill that would leave the list moves a little further while fading, is put just outside the other end and comes back to its place.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #e2502f | The colour of your pill. |
YOU | script.js | 2 | Which of the four people you are: 0 is the first. |
GLIDE | script.js | 0.7 | How many seconds the people take to move one place. |
SPRING | script.js | 1 | How much the pills bounce on arriving. |
LOOP | script.js | true | Left alone, the demo’s pointer goes forward three weeks, back one and starts again. |
In the app of a shared flat, a family or a student house, and on a small office’s board for who opens, who locks up and who takes the paper out; the same list with people moving down carries a team’s on-call rota, who drives in a car pool or who brings the snacks to school.
The card is at most 348 pixels wide and about 340 tall, and narrows with the screen: long chore names truncate with an ellipsis before touching the pills. The button is 44 pixels tall and the arrow sits in a 44-pixel circle.
No sliding pills: on changing week each one is on its new row at once and the texts change in one step. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.3 KB; the libraries: GSAP 28 KB.
Tested on 30 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.
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.