
The liquid grid
Hover, Transitions
The installment plan of a purchase, on warm white: three, six or twelve months to choose, the monthly amount in large type and under it a row of blocks, one per payment, the first green because it is paid today. Changing plan divides the blocks again, the amount counts to its new value and the terms roll. Pointing at a block lifts it and below you read that payment’s date and amount.
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>
<!--
"Installment plan" 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>Installment plan</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 installment plan of a purchase: three, six or twelve payments, the blocks of the schedule
dividing again, the monthly amount counting and the date of each payment on pointing at it -->
<section class="ip" data-ip aria-label="Pay over time">
<header class="ip__head"><strong>Pay over time</strong><span class="ip__total">Order <b data-outorder>$480.00</b></span></header>
<div class="ip__seg" role="group" aria-label="Number of payments" data-seg>
<i class="ip__pick" data-pick aria-hidden="true"></i>
<button type="button" class="ip__opt" data-plan="3"><span>3 months</span></button>
<button type="button" class="ip__opt" data-plan="6"><span>6 months</span></button>
<button type="button" class="ip__opt" data-plan="12"><span>12 months</span></button>
</div>
<div class="ip__hero">
<span class="ip__num">$<span data-outnum>160.00</span></span>
<span class="ip__what"><b>a month</b><span class="ip__clip"><span data-outterms>0% interest</span></span></span>
</div>
<div class="ip__plan">
<div class="ip__blocks" data-blocks></div>
<div class="ip__ends"><span>Today</span><span class="ip__clip"><span data-outlast>Jan 30</span></span></div>
</div>
<p class="ip__note"><span class="ip__clip"><span data-outnote>3 payments, the first one today.</span></span></p>
</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.
24 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 “Installment plan” from Animorio and fit it into my siteThe blocks are always twelve buttons. For the chosen plan the first ones take equal places and widths; the extra ones close to zero width against the right edge and cannot be reached.
Changing plan animates every block’s position and width to the new values, slightly staggered: the first ones narrow and the others come out of the edge.
With no interest it is the total divided by the payments; with a rate it is the constant-payment formula. The number shown chases the computed one.
Each payment falls on the same day of the next month, or on the last day when the month is shorter. Pointing at a block shows its date and amount.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #0f8a5f | The colour of today’s payment and of the terms. |
TOTAL | script.js | 480 | How much the order costs, in dollars. |
APR | script.js | 6 | The yearly rate of the longest plan, in percent: the other two are interest-free. |
SPLIT | script.js | 0.7 | How many seconds the blocks take to divide again. |
SPRING | script.js | 1 | How much the tile and the block pointed at bounce. |
LOOP | script.js | true | Left alone, the demo’s pointer points at the payments, changes plan and starts again. |
At the checkout of an online store, on the page of an expensive product or in the quote for a course or a trip, where people choose in how many parts to pay; the same row of blocks dividing again carries a project’s milestones, the doses of a treatment or the instalments of a subscription.
The card is at most 348 pixels wide and about 270 tall, and narrows with the screen: the blocks share the width they find, and with twelve payments they are about 20 pixels wide. On a phone a tap on a block shows its payment and another takes it away.
No sliding blocks and no counting: on changing plan the blocks are in place at once, the amount and the terms change in one step, and the block pointed at darkens without lifting. 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 6.0 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.