
The colour columns
Hover, SVG
The hours worked in a week on a dark card: the total in large digits, how much overtime, and six bars from Monday to Saturday with the dashed eight-hour line. The part of each bar above the line is a second piece, coral, set a hair apart. Hovering a day dims the others and a line gives its hours and overtime; “Last week” changes the bars’ height one after the other, with a bounce, while the total counts.
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>
<!--
"Overtime chart" 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>Overtime chart</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 hours worked in a week as bars: the eight-hour line, the part above it standing apart as
overtime, the day you point at with its detail and the total rolling -->
<article class="ot" data-ot aria-label="Hours worked">
<header class="ot__head">
<strong>Hours worked</strong>
<div class="ot__when" role="tablist" aria-label="Week" data-when><i class="ot__pill" data-pill aria-hidden="true"></i><button type="button" role="tab" aria-selected="true" data-week="now">This week</button><button type="button" role="tab" aria-selected="false" data-week="last" tabindex="-1">Last week</button></div>
</header>
<div class="ot__sum"><strong data-outsum>42.0 h</strong><span class="ot__chip"><span data-outchip>2.5 h overtime</span></span></div>
<div class="ot__chart" data-chart><svg data-svg aria-hidden="true"><line class="ot__limit" data-limit></line><text class="ot__limlab" data-limlab>8 h</text><g data-bars></g></svg><div class="ot__hits" data-hits></div></div>
<footer class="ot__foot"><span data-outnote>Anything above 8 h a day counts as overtime</span></footer>
</article>
<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 “Overtime chart” from Animorio and fit it into my siteEvery day is a number of hours. Two svg rectangles are drawn from it: one up to the limit, one for what goes past it, three pixels higher. If the day does not pass the limit, the second has zero height.
The rectangles have no sizes in the markup: on every frame position and height are recomputed from the six animated hours, in pixels, on the frame’s real size. Changing week means animating six numbers, staggered.
Over the chart sit six invisible buttons, one per column: mouse, touch and keyboard call the same function, which lights one day and dims the others with a number between zero and one.
Total and overtime are summed from the days’ hours, not typed in: changing LIMIT changes the coral pieces, the label and the line’s caption.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #ff7a59 | The colour of overtime. |
LIMIT | script.js | 8 | The daily hours beyond which it is overtime. |
GLIDE | script.js | 0.8 | How many seconds the bars take to go from one week to the other. |
HOLD | script.js | 1.9 | How many seconds the demo’s pointer stays on each day. |
LOOP | script.js | true | Left alone, the demo’s pointer goes over the days and changes week. |
In a company’s attendance or payroll app, on the page of the worker or of whoever approves the hours; the same chart with its threshold carries daily steps above the goal, usage above the plan, spending above the budget or calls above the quota.
The card is at most 344 pixels wide and about 300 tall; the chart is sized on the screen’s height too and redraws on resize. With a finger a day is tapped to hold it and tapped again to go back to the starting line.
No growing bars and no bounces: on a week change the bars are the new ones at once with a brief fade, the total does not count and the texts change without rolling; the day pointed at lights up at once. 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.2 KB; the libraries: GSAP 28 KB.
Tested on 29 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.