Skip to content
animorio
IT
All components

Chore rotation

Lists, HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.3 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On white, a rounded card: “House chores” and on the right “Week of Nov 30”. Below, four rows: “Kitchen”, “Bins and recycling”, “Bathroom” and “Plants and post”, each with a smaller line saying when it is done. To the right of each row a grey pill with the initial in a circle and the name: Maya, Leo and Noor; the one beside the bathroom is coral and says “You”. Below, a light grey box: “This week you’re on the bathroom.”. At the bottom an arrow in a circle and the dark button “Next week”. On entering the pills come in from the right one after the other. Tapping “Next week” presses the button, the pills move down a row with a slight bounce, and the one at the bottom vanishes downwards and comes back in from above onto the kitchen; at the top the date rolls into “Week of Dec 7” and the box into “That week you’re on the plants.”. The arrow does the opposite: everyone moves up and whoever was at the top comes back in from the bottom.

How it works

Two layers

The chores are a real list. The people sit in a layer above, one pill each, put on their row with a translation.

The turn is arithmetic

Everyone’s place is their number plus the week’s, modulo how many chores there are: the rotation needs no stored state.

Moving down

On changing week every pill goes to its new row on a spring, slightly staggered.

Going round

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.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#e2502fThe colour of your pill.
YOUscript.js2Which of the four people you are: 0 is the first.
GLIDEscript.js0.7How many seconds the people take to move one place.
SPRINGscript.js1How much the pills bounce on arriving.
LOOPscript.jstrueLeft alone, the demo’s pointer goes forward three weeks, back one and starts again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The pills are in a separate layer, hidden from screen readers: who is on what is also written inside every row of the list, in text hidden from view (“Kitchen: Maya”).
  • Your pill says “You” as well as changing colour, and the box repeats in words what is yours.
  • The row reserves the pill’s space on the right: without it, a long name would end up underneath.
  • The first Monday in the demo is fixed, so the dates are always the same; in a real app it is the current week’s.
  • Names, chores and dates are invented.

Libraries

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.

Testing

Tested on 30 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components