
The star rating
Ratings, SVG, Hover
A quarter’s objective with its three key results in a white card. Tap a result to log a check-in: its bar springs forward, the ring recomputes the average and the status is judged against the black notch of where the quarter is today: Off track, At risk, On track, all the way to Achieved.
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>
<!--
"OKR progress card" 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>OKR progress card</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 quarter's objective with its three key results: log a check-in on one and its bar springs forward,
the ring recomputes the average and the status is judged against where the quarter is today -->
<section class="okr" data-okr aria-label="Objective and key results">
<header class="okr__head">
<span class="okr__when">Q4 2026 <i data-week></i></span>
<span class="okr__roll okr__status" aria-live="polite"><span data-status></span></span>
</header>
<div class="okr__goal">
<span class="okr__ring">
<svg viewBox="0 0 64 64" aria-hidden="true">
<circle class="okr__track" cx="32" cy="32" r="26"></circle>
<circle class="okr__arc" data-arc cx="32" cy="32" r="26" transform="rotate(-90 32 32)"></circle>
<line class="okr__notch" data-notch x1="32" y1="2" x2="32" y2="10"></line>
</svg>
<b class="okr__pct"><span data-pct>0</span><i>%</i></b>
</span>
<span class="okr__text">
<span class="okr__label">Objective</span>
<h1 class="okr__title">Make onboarding effortless</h1>
</span>
</div>
<div class="okr__list" data-list></div>
<footer class="okr__foot">
<span class="okr__key"><i></i>Where the quarter is today</span>
<span class="okr__roll okr__hint"><span data-hint>Tap a result to check in</span></span>
</footer>
</section>
<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.
19 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 “OKR progress card” from Animorio and fit it into my siteFor each key result: (value − start) divided by (target − start). It also works when the number has to go down, like the minutes of the second one. The ring is the average of the three shares.
The black notch is the week divided by thirteen. The distance between the notch and the average decides the status and the colour, which is a single CSS variable: pill and ring read it and change together.
Each bar and the ring have a spring integrated on GSAP’s ticker, chasing the new share. The bar is a whole element sliding inside a rail with hidden overflow, so its tip stays round while it bounces.
Each row is a button: it takes focus, answers Enter and Space, and its label says value, target and what a tap does. The status sits in an aria-live region.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #4b3bff | The colour of the key result bars. |
WEEK | script.js | 8 | Which week of the quarter it is (1 to 13): moves the black “today” notch. |
AT_RISK | script.js | 8 | How many points below the notch trigger “At risk”; beyond twice that plus 4 it is “Off track”. |
BOUNCE | script.js | 1 | How much bars and ring bounce on each check-in: 0.3 = stiff, 2 = very springy. |
LOOP | script.js | true | Left alone, the demo’s pointer logs the check-ins one after the other. |
In the dashboard of a company goals tool, on a team’s page, in the quarterly review. The same judgement against time suits a budget, a fundraiser, a training plan: how much is done, compared with how much time has gone.
The same card, as wide as the screen: the rows are tall enough for a finger and you tap them. In a short window the bottom line goes and the rows tighten.
Bars and ring go straight to their place without bouncing, values change without rolling and the difference pill does not appear. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.5 KB; the libraries: GSAP 28 KB.
Tested on 20 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.