Skip to content
animorio
IT
All components

Project time tracker

Timers, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.0 KBGSAP 28 KBFreeDownload the zip

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.

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

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.

17 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 “Project time tracker” 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: “Time tracker” and on the right “Today $210.00”. Below, three projects to pick, “Lumen site”, “Orbit app” and “Admin”, with the white thumb on the first. Then the time, large: “0:24:56”, moving on a second at a time, each digit in its own little window; under it, “$90 an hour” and the amount rising in cents. On the right a round blue button with the stop square, and around it a thin ring that fills over a minute. At the bottom today’s list: “Admin, 10:40 to 11:15, 0:35, No charge”, “Orbit app, 9:05 to 10:35, 1:30, $165.00” and “Lumen site, 8:30 to 9:00, 0:30, $45.00”. Tapping the button stops the time, the button goes dark again and the square turns into the play triangle; the new entry drops onto the top of the list, “Lumen site, 11:20 to 11:45, 0:25, $37.50”, its duration in blue, the others move down with a slight bounce and the oldest leaves at the bottom; the total at the top counts up to “$247.50”. Picking “Orbit app” slides the thumb and the rate rolls into “$110 an hour” and the clock goes back to zero. Tapping the button again starts the time from “0:00:00”.

How it works

Time from the animation clock

The seconds add up at every frame from the time that truly passed: if the tab is idle, the clock does not jump.

One digit per window

The time is written digit by digit, each in a box that clips it: only the one that changes rolls.

Four points

The stop square and the play triangle are the same four-point polygon: two of them meet to make the tip.

The falling entry

The list’s rows are placed by the script: the new one starts from above, the others move down a row on a spring.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#4b5dffThe colour of running time.
STARTEDscript.js25How many minutes the clock already shows on opening: the session is under way.
RATEscript.js90The first project’s hourly rate, in dollars.
SPRINGscript.js1How much the list entries bounce.
LOOPscript.jstrueLeft alone, the demo’s pointer stops the session, changes project and starts again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • There is a single button and it changes name for screen readers (“Stop the timer”, “Start the timer”); the time has the timer role and every stop is announced with project, duration and amount.
  • The digits are tabular: without that, the time would wobble sideways every second.
  • The ring round the button does not spin: it fills by changing the dash, so it stays on its centre.
  • Changing project while the time runs moves the session to that project: in a real app it is worth asking for confirmation.
  • The demo’s clock is fixed (it is 11:45 on opening) and names, rates and times are invented.

Libraries

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.

Testing

Tested on 1 December 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