Skip to content
animorio
IT
All components

Kanban with WIP limit

Boards, Physics, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

61 values to change

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 “Kanban with WIP limit” 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 a white page sits the light grey panel of the Mobile launch board, Kestrel, Sprint 14, with a one pixel edge that catches the light on top, a soft three layer shadow, the project's violet mark and the team's initials. Inside are three columns: To do with three cards, In progress with three cards and the orange 3/3 counter, Done with Dark mode and its green check. Each card has the team label (Growth, Design, Backend), the title, the initials of whoever owns it and the due date or the subtasks done. The pilot's hand takes Pricing copy: the card gives a little, then lifts bigger, leans with the speed and its shadow grows longer, and a violet place stays where it was. It carries it to In progress, which is full: the column warms to orange, the counter shakes, WIP limit 3 appears at the bottom, the card leans on the edge and only gets a little way in even as the hand pushes, and the cards inside step aside by a pixel. Let go, it springs back to its place. Then the hand takes Passkey sign in to Done: the In progress cards rise to close the hole, in Done Dark mode slides down to make room, the card lands one pixel past its place with a small squash, its check draws itself, the counter goes to 2/3 and loses its orange and the Done one rolls to 2. Now there is room: Pricing copy goes in at the bottom of In progress and the counter is back at 3/3. The cards fade and the board starts again.

How it works

The cards in one layer

The 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.

The place that opens

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.

The full column that pushes back

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.

Lean and shadow

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 spring that passes by a pixel

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.

Values to change

NameFileDefaultWhat it changes
BOUNCEscript.js0.86The landing spring: lower bounces more (0.6), 1 lands without passing the mark.
TILTscript.js1How much the card leans with the speed of the hand (0 never).
LIFTscript.js1.045How much bigger the card gets in the hand.
PUSHscript.js0.24How far the card gets into a full column before it is pushed back (0 not at all).
PACEscript.js1The pilot's pauses: higher waits longer between moves.
LOOPscript.jstrueThe pilot plays the story again and again.

Try them in the Playground

When to use it

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).

On phones

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).

With reduced motion

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.

Pitfalls

  • A gsap.from with a relative value built in a timeline before the cards were put back remembers the old positions (it renders at once): on the reset the cards went back where they had been. The tween is made inside a call, after the arranging.
  • With the lean computed only in pointer events, a still hand left the card crooked: the speed is read in a ticker every frame and dies down by itself.
  • Positions read with getBoundingClientRect during the panel's scaled entrance were off by a few pixels: offsetLeft and offsetTop are added up to the panel, and they ignore transforms.
  • Animating the long shadow in box-shadow repainted the card every frame: it is a layer of its own and only its opacity moves.

Libraries

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.

Testing

Tested on 6 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