
Falling tools
Physics, Hover
The achievements screen of Pacewell, an invented running app, in the style of premium Dribbble shots: four medals of real looking metal (brushed gold, silver, bronze and one still to unlock under frosted glass) hang from fabric ribbons on a brass rod. Each one is a pendulum with real physics: gravity brings it back, the air slows it, the pointer drags it and the medals knock into each other with small elastic hits; the ribbons twist slightly and the reflection slides over the metal. A click turns a medal over to show its engraved back; the last one unlocks with a light running over the titanium and the half marathon time climbing.
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>
<!--
"Running medals" 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>The achievement medals swinging on their ribbons</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" data-stage>
<!-- the achievements screen of Pacewell, an invented running app: four medals hang from fabric ribbons on a thin
brass rod and swing like real pendulums. The pointer pushes them and they knock into each other; a click
turns a medal over to show its engraved back; the last one is still frosted glass until it unlocks -->
<section class="card" data-card aria-label="Pacewell achievements">
<header class="card__head">
<div class="brand">
<svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 18.5L11 5.5M10.5 18.5L16.5 5.5M16 18.5l3-6.5"/>
</svg>
<span class="brand__name">Pacewell</span>
</div>
<span class="chip"><span class="chip__roll" data-count><span>3</span><span>4</span></span><span class="chip__of">of 4 earned</span></span>
</header>
<h1 class="card__title">Achievements</h1>
<div class="rack" data-rack>
<span class="rod" aria-hidden="true"><span class="rod__cap"></span><span class="rod__cap rod__cap--end"></span></span>
<div class="medal" data-medal data-metal="gold" data-name="Riverside 10K" data-info="Sep 14, 2026 · 47:36">
<span class="medal__shadow" data-shadow></span>
<div class="medal__swing" data-swing>
<span class="ribbon" data-ribbon><span class="ribbon__fold" data-fold></span></span>
<span class="medal__ring"></span>
<span class="medal__edge" data-edge></span>
<div class="medal__body" data-body>
<div class="face face--front" data-front>
<span class="face__ring"></span>
<span class="face__big">10K</span>
<span class="face__small">Best</span>
</div>
<div class="face face--back" data-back>
<span class="face__ring"></span>
<span class="face__line">Riverside</span>
<span class="face__time">47:36</span>
<span class="face__line">14.09.26</span>
</div>
<span class="medal__glint" data-glint></span>
</div>
</div>
</div>
<div class="medal" data-medal data-metal="silver" data-name="October distance" data-info="Oct 31, 2026 · 104.6 km">
<span class="medal__shadow" data-shadow></span>
<div class="medal__swing" data-swing>
<span class="ribbon" data-ribbon><span class="ribbon__fold" data-fold></span></span>
<span class="medal__ring"></span>
<span class="medal__edge" data-edge></span>
<div class="medal__body" data-body>
<div class="face face--front" data-front>
<span class="face__ring"></span>
<span class="face__big">100</span>
<span class="face__small">km</span>
</div>
<div class="face face--back" data-back>
<span class="face__ring"></span>
<span class="face__line">October</span>
<span class="face__time">104.6</span>
<span class="face__line">31.10.26</span>
</div>
<span class="medal__glint" data-glint></span>
</div>
</div>
</div>
<div class="medal" data-medal data-metal="bronze" data-name="First 5K" data-info="Mar 2, 2026 · 27:58">
<span class="medal__shadow" data-shadow></span>
<div class="medal__swing" data-swing>
<span class="ribbon" data-ribbon><span class="ribbon__fold" data-fold></span></span>
<span class="medal__ring"></span>
<span class="medal__edge" data-edge></span>
<div class="medal__body" data-body>
<div class="face face--front" data-front>
<span class="face__ring"></span>
<span class="face__big">5K</span>
<span class="face__small">First</span>
</div>
<div class="face face--back" data-back>
<span class="face__ring"></span>
<span class="face__line">Park run</span>
<span class="face__time">27:58</span>
<span class="face__line">02.03.26</span>
</div>
<span class="medal__glint" data-glint></span>
</div>
</div>
</div>
<div class="medal medal--locked" data-medal data-metal="titanium" data-locked data-name="Harbour Half" data-info="Nov 2, 2026 · 1:52:08">
<span class="medal__shadow" data-shadow></span>
<div class="medal__swing" data-swing>
<span class="ribbon" data-ribbon><span class="ribbon__fold" data-fold></span></span>
<span class="medal__ring"></span>
<span class="medal__edge" data-edge></span>
<div class="medal__body" data-body>
<div class="face face--front" data-front>
<span class="face__ring"></span>
<span class="face__big">21.1</span>
<span class="face__small">Half</span>
</div>
<div class="face face--back" data-back>
<span class="face__ring"></span>
<span class="face__line">Harbour</span>
<span class="face__time">1:52</span>
<span class="face__line">02.11.26</span>
</div>
<span class="medal__sweep" data-sweep></span>
<span class="frost" data-frost>
<svg class="lock" viewBox="0 0 24 24" aria-hidden="true">
<path class="lock__shackle" data-shackle d="M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5"/>
<rect class="lock__body" x="6" y="10.5" width="12" height="9" rx="2.4"/>
<path class="lock__key" d="M12 14.2v2"/>
</svg>
</span>
<span class="medal__glint" data-glint></span>
</div>
</div>
</div>
<span class="spark" data-spark aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 1.5v4.2M10 14.3v4.2M3.2 4.8l2.6 2.4M14.2 12.8l2.6 2.4M16.8 4.8l-2.6 2.4M5.8 12.8l-2.6 2.4"/></svg></span>
<span class="spark" data-spark aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 1.5v4.2M10 14.3v4.2M3.2 4.8l2.6 2.4M14.2 12.8l2.6 2.4M16.8 4.8l-2.6 2.4M5.8 12.8l-2.6 2.4"/></svg></span>
<span class="spark" data-spark aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 1.5v4.2M10 14.3v4.2M3.2 4.8l2.6 2.4M14.2 12.8l2.6 2.4M16.8 4.8l-2.6 2.4M5.8 12.8l-2.6 2.4"/></svg></span>
<span class="cursor" data-cursor aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M5 3.2l13.6 8.1-6 1.3-3.2 5.6z"/></svg>
</span>
</div>
<footer class="goal" data-goal>
<div class="goal__text">
<span class="goal__label" data-label-wrap><span data-label>Next goal</span></span>
<span class="goal__value" data-value-wrap><span data-value>Half marathon · 18.6 of 21.1 km</span></span>
</div>
<span class="goal__bar" aria-hidden="true"><span class="goal__fill" data-fill></span></span>
</footer>
</section>
<p class="sr" aria-live="polite" data-live></p>
</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.
58 values to change
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 “Running medals” from Animorio and fit it into my siteEvery frame, in three small steps, the angle of each medal gets gravity (minus g over length times the sine of the angle) and air damping (minus the damping times the speed). The ribbon and the medal turn together around the pivot on the rod with a single rotate in radians.
If the pointer is over the coin or over the ribbon, the medal's speed is pulled towards the pointer's along the tangent, harder when it moves fast and less when it touches the ribbon near the pivot (the lever). The drawn pointer of the autopilot goes through the same path, with its speed computed between frames.
For each pair of neighbours the distance between the centres is measured: if it is less than the sum of the radii they are pushed apart and, if they are closing in, they exchange speed along the normal with a restitution (BOUNCE). Above a certain speed the six stroke SVG flash starts at the contact point and the metal brightens for an instant.
The coin turns with a scaleX equal to the absolute cosine of the angle, and when the cosine changes sign front and back swap. The edge is a darker milled disc behind, shifted sideways by the sine of the angle: that is how the thickness shows. The twisted ribbon is another scaleX with the cosine of the twist, plus a shade that rises with the sine.
A GSAP timeline opens the padlock, draws the glass back with a clip-path from the bottom, gives the ribbon its colour back, runs a band of light over the titanium, knocks the medal, rolls the pill's digit and raises the line with the time running from 0:00:00 to 1:52:08.
| Name | File | Default | What it changes |
|---|---|---|---|
GRAVITY | script.js | 2400 | How hard gravity pulls the medals back: higher swings faster. |
DAMPING | script.js | 0.9 | How quickly the swinging dies out. |
PUSH | script.js | 1 | How strongly the pointer drags the medals it passes through. |
BOUNCE | script.js | 0.55 | How much speed is kept when two medals knock (0 = dead, 1 = elastic). |
TWIST | script.js | 1 | How much the ribbons twist at every hit. |
LIFT | script.js | 1.3 | How much a turned medal comes towards you. |
SIZE | script.js | 0.42 | The radius of the medals, relative to their slot on the rod. |
SPEED | script.js | 1 | 2 = the walk on its own twice as fast, 0.5 = half. |
LOOP | script.js | true | Repeats the walk of the drawn pointer. |
On the achievements or profile page of a running, cycling, swimming or fitness app, in the awards of an online course, in the badges of a community or a game, in an app's year in review: wherever a reached goal should feel like a real object to touch. The metals are --gold, --silver, --bronze and --ti in the CSS, the brand colour is --accent.
The same animations at adapted sizes: the card takes the width of the screen, the medals are measured on their slot on the rod and on the height of the page, the ribbons get longer or shorter to fit the card. A finger drags the medals and a tap turns them over.
The medals stay still and straight and do not knock: turning one is a fade between front and back, the unlock fades the glass away and the time appears already right.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP 28 KB.
Tested on 4 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
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.