
The slide-to-confirm button
Buttons, Physics, Transitions
The kanban sprint board of a product team, Kestrel, on a light grey panel: To do, In progress and Done, and In progress has a work in progress limit of three. A card taken in the hand lifts, leans with the speed of the hand and its shadow grows longer; carried to the full column it leans on the edge and only gets a little way in, the cards inside step aside by a pixel, the 3/3 counter shakes and WIP limit 3 appears, and let go it springs back home. When a finished card goes to Done a place opens: the same card goes in, the others make room, it lands one pixel past its place and the counters roll.
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>
<!--
"Kanban with WIP limit" 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 kanban board with the work in progress limit that pushes back the card you drag</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 sprint board of a product team (Kestrel): three columns, In progress with a limit of three. A card taken
to a full column leans on its edge and is pushed back on a spring; once a card leaves, the same card goes in,
the others make room and the counters roll -->
<section class="board" data-board aria-label="Sprint board">
<header class="board__head">
<div class="board__title">
<svg class="board__mark" viewBox="0 0 24 24" aria-hidden="true">
<path d="M4 17 L12 5 L20 17 Z" />
<path d="M8.5 17 L12 11.5 L15.5 17" />
</svg>
<div>
<h1 class="board__name">Mobile launch</h1>
<p class="board__meta">Kestrel <span aria-hidden="true">·</span> Sprint 14</p>
</div>
</div>
<div class="board__team" aria-label="Team: Ana, Jun, Rhea">
<span class="ava ava--a">AN</span>
<span class="ava ava--b">JU</span>
<span class="ava ava--c">RH</span>
</div>
</header>
<div class="board__cols">
<div class="col" data-col="todo" data-limit="3" data-show-limit="false">
<div class="col__head">
<span class="col__name">To do</span>
<span class="count" data-count><span class="count__n" data-n>3</span></span>
</div>
<div class="col__body" data-body></div>
<p class="col__hint" data-hint aria-hidden="true">Column is full</p>
</div>
<div class="col" data-col="doing" data-limit="3" data-show-limit="true">
<div class="col__head">
<span class="col__name">In progress</span>
<span class="count" data-count><span class="count__n" data-n>3</span><span class="count__limit">/3</span></span>
</div>
<div class="col__body" data-body></div>
<p class="col__hint" data-hint aria-hidden="true">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2.2 L14.2 13.2 H1.8 Z" /><path d="M8 6.6 V9.4" /><path d="M8 11.3 V11.4" /></svg>
WIP limit 3
</p>
</div>
<div class="col" data-col="done" data-limit="3" data-show-limit="false">
<div class="col__head">
<span class="col__name">Done</span>
<span class="count" data-count><span class="count__n" data-n>1</span></span>
</div>
<div class="col__body" data-body></div>
<p class="col__hint" data-hint aria-hidden="true">Column is full</p>
</div>
</div>
<!-- the cards travel in one layer over the columns, so a card can cross from one column to the next -->
<div class="board__layer" data-layer>
<article class="card" data-card="pricing" data-home="todo" tabindex="0" aria-label="Pricing copy, Growth, in To do">
<div class="card__face">
<span class="tag tag--growth">Growth</span>
<h2 class="card__title">Pricing copy</h2>
<div class="card__foot">
<span class="ava ava--a ava--s">AN</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2.5" y="3.5" width="11" height="10" rx="2" /><path d="M2.5 6.5 H13.5 M5.5 2 V4.5 M10.5 2 V4.5" /></svg>Nov 12</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="empty" data-home="todo" tabindex="0" aria-label="Empty states, Design, in To do">
<div class="card__face">
<span class="tag tag--design">Design</span>
<h2 class="card__title">Empty states</h2>
<div class="card__foot">
<span class="ava ava--c ava--s">RH</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>0/4</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="csv" data-home="todo" tabindex="0" aria-label="CSV export, Backend, in To do">
<div class="card__face">
<span class="tag tag--backend">Backend</span>
<h2 class="card__title">CSV export</h2>
<div class="card__foot">
<span class="ava ava--b ava--s">JU</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>0/3</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="passkeys" data-home="doing" tabindex="0" aria-label="Passkey sign in, Backend, in In progress">
<div class="card__face">
<span class="tag tag--backend">Backend</span>
<h2 class="card__title">Passkey sign in</h2>
<div class="card__foot">
<span class="ava ava--b ava--s">JU</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>4/4</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="onboarding" data-home="doing" tabindex="0" aria-label="Onboarding, Design, in In progress">
<div class="card__face">
<span class="tag tag--design">Design</span>
<h2 class="card__title">Onboarding</h2>
<div class="card__foot">
<span class="ava ava--c ava--s">RH</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>2/5</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="webhooks" data-home="doing" tabindex="0" aria-label="Billing webhooks, Backend, in In progress">
<div class="card__face">
<span class="tag tag--backend">Backend</span>
<h2 class="card__title">Billing hooks</h2>
<div class="card__foot">
<span class="ava ava--a ava--s">AN</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>1/3</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<article class="card" data-card="tokens" data-home="done" tabindex="0" aria-label="Dark mode tokens, Design, in Done">
<div class="card__face">
<span class="tag tag--design">Design</span>
<h2 class="card__title">Dark mode</h2>
<div class="card__foot">
<span class="ava ava--c ava--s">RH</span>
<span class="card__meta"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 4.5 H13 M3 8 H13 M3 11.5 H9" /></svg>6/6</span>
</div>
<svg class="card__check" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" /><path data-tick d="M6.3 10.2 L8.8 12.6 L13.8 7.6" pathLength="1" /></svg>
</div>
</article>
<div class="slot" data-slot aria-hidden="true"></div>
<svg class="hand" data-hand viewBox="0 0 24 24" aria-hidden="true">
<path d="M5.5 3.2 L5.5 18.4 L9.4 14.9 L12 20.6 L14.6 19.4 L12.1 13.9 L17.4 13.6 Z" />
</svg>
</div>
</section>
<p class="sr" data-live aria-live="polite"></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.
61 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 “Kanban with WIP limit” from Animorio and fit it into my siteThe columns are a plain grid, but the cards all sit in one absolute layer over the panel and the script puts them in place with GSAP's x and y: so a card can cross from one column to the next without changing parent in the DOM. The column positions are read with offsetLeft and offsetTop up to the panel, not with getBoundingClientRect, so the panel's scaled entrance does not move them.
A function stacks the cards of a column from the top and leaves a hole as tall as the card in the hand at the index where it would fall (the card's centre against the middle of each card). Each time the column or the index changes, the cards go to their new place on a slightly softer spring with a 28 millisecond stagger, and a violet frame slides into the hole.
If the column under the card is full, the card's x stops following the hand past the edge: x = edge + (hand − edge) × PUSH, a rubber band that lets in only a quarter of the movement. The column gets the is-refusing class (orange fill and edge), the counter shakes with x keyframes, WIP limit 3 appears, the cards inside step 3 pixels the other way and the place goes back home: let go, the card returns there.
A GSAP ticker reads the speed of the hand every frame, damps it and turns it into rotation with quickTo, so the card straightens up by itself when the hand stops. The long shadow is a layer of its own (::before) with its opacity tied to the --lift CSS variable, animated by GSAP: only the opacity moves, never the box-shadow.
The landing uses a hand written ease, the response of a spring damped at 0.86: over a hundred pixel trip it passes the mark by half a pixel or one and settles. Just before the end the card squashes by 1% and comes back, and the counters change on a small drum: the old figure leaves upwards, the new one comes in from below.
| Name | File | Default | What it changes |
|---|---|---|---|
BOUNCE | script.js | 0.86 | The landing spring: lower bounces more (0.6), 1 lands without passing the mark. |
TILT | script.js | 1 | How much the card leans with the speed of the hand (0 never). |
LIFT | script.js | 1.045 | How much bigger the card gets in the hand. |
PUSH | script.js | 0.24 | How far the card gets into a full column before it is pushed back (0 not at all). |
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 a project management app, a team tool or a product dashboard with tasks in columns: it shows at once, without an error message, that a column has a limit and why the card does not go in. It also works on the landing page of a team app, as a live demonstration of the dragging, or as a model for any list with a capacity (the places of a shift, the tables of a room, the rooms of a night).
The same animation with adapted sizes: the panel is 94% of the screen wide, the cards, the type and the spacing are sized on the height too, the column names narrow with the wdth axis and the small icons go. A finger drags like the mouse (touch-action: none on the cards).
Nothing moves on its own: the panel and the cards fade in, the full column takes its colour and shows WIP limit 3 without shaking, and the cards change column by fading out and back in at their place; the counters and the check change with a fade. With a pointer the card follows the hand without leaning and once dropped appears in its place.
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 6 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.