
The elastic button
Buttons, Hover, Text
A freelancer’s time tracker, in a card on white: the project to pick, the time running with digits rolling one by one and what it is worth, and a single round button. Stop ends the session: the square becomes a triangle, the entry drops onto the top of today’s list on a spring and the day’s total goes up. Start begins again from zero, with the ring filling once a minute.
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>
<!--
"Project time tracker" 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>Project time tracker</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">
<!-- a freelancer's time tracker: the project to pick, the clock running with rolling digits and the money
it is worth, Stop dropping the session into today's list and Start beginning again from zero -->
<section class="tt" data-tt aria-label="Time tracker">
<header class="tt__head"><strong>Time tracker</strong><span class="tt__today">Today <b data-outtotal>$210.00</b></span></header>
<div class="tt__projects" role="radiogroup" aria-label="Project" data-projects>
<i class="tt__thumb" data-thumb aria-hidden="true"></i>
<button type="button" role="radio" aria-checked="true" data-project="0">Lumen site</button>
<button type="button" role="radio" aria-checked="false" data-project="1">Orbit app</button>
<button type="button" role="radio" aria-checked="false" data-project="2">Admin</button>
</div>
<div class="tt__clock">
<div class="tt__read">
<span class="tt__time" data-time role="timer" aria-label="Elapsed time"></span>
<span class="tt__worth"><span class="tt__clip"><span data-outrate>$90 an hour</span></span><b data-outworth>$37.40</b></span>
</div>
<button type="button" class="tt__go" data-go aria-label="Stop the timer">
<svg class="tt__ring" viewBox="0 0 64 64" aria-hidden="true"><circle class="tt__lap" data-lap cx="32" cy="32" r="30" pathLength="1" transform="rotate(-90 32 32)"></circle></svg>
<span class="tt__face"><svg viewBox="0 0 24 24" aria-hidden="true"><polygon data-shape points="7,7 17,7 17,17 7,17"></polygon></svg></span>
</button>
</div>
<div class="tt__log" data-log aria-label="Today’s sessions" role="list"></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.
17 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 “Project time tracker” from Animorio and fit it into my siteThe seconds add up at every frame from the time that truly passed: if the tab is idle, the clock does not jump.
The time is written digit by digit, each in a box that clips it: only the one that changes rolls.
The stop square and the play triangle are the same four-point polygon: two of them meet to make the tip.
The list’s rows are placed by the script: the new one starts from above, the others move down a row on a spring.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #4b5dff | The colour of running time. |
STARTED | script.js | 25 | How many minutes the clock already shows on opening: the session is under way. |
RATE | script.js | 90 | The first project’s hourly rate, in dollars. |
SPRING | script.js | 1 | How much the list entries bounce. |
LOOP | script.js | true | Left alone, the demo’s pointer stops the session, changes project and starts again. |
In the app of whoever bills by the hour: freelancers, studios, agencies, lawyers, consultants; in the bar of a project management tool or a task app. The same clock with the list below carries study sessions, workouts or volunteering hours.
The card is at most 348 pixels wide and about 320 tall; under 350 pixels the digits go down to 38 pixels. The round button is 64 pixels wide, the projects 30 pixels tall and a third of the card wide.
Time still runs, but the digits change without rolling; the new entry appears already in place, the total 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 7.0 KB; the libraries: GSAP 28 KB.
Tested on 1 December 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.