
Falling tools
Physics, Hover
The profile card of a made-up product designer on a portfolio platform: the name with a verified seal, the role, the availability, three numbers and the buttons. Under it, a sunken tray holds her skills as pills, moved by hand-written physics: rectangular bodies with rounded corners, gravity, bounce, friction and collisions. Move the pointer sideways and the tray leans, gravity leans with it and the pills slide to the low side; a pill can be grabbed, swung from where you hold it and thrown. Premium minimal style.
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>
<!--
"Skill pills tray" 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 designer's profile with skills in a tray that tilts</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the profile card of a product designer on a portfolio platform. Under it, a tray holds her skills: pills that
fall in with hand-written physics (rounded bodies, gravity, bounce, friction, collisions). Move the pointer
sideways and the tray leans a few degrees, gravity leans with it and the pills slide; grab one and throw it -->
<section class="card" data-card aria-label="Noa Asante, product designer">
<span class="card__sheen" aria-hidden="true"></span>
<header class="card__head" data-line>
<span class="avatar" aria-hidden="true">
<span class="avatar__face">NA</span>
</span>
<span class="card__who">
<span class="card__name-row">
<h1 class="card__name">Noa Asante</h1>
<svg class="card__badge" viewBox="0 0 16 16" aria-label="Verified"><path class="card__badge-seal" d="M8 1.2l1.7 1.3 2.1-.2.7 2 1.8 1.1-.5 2.1.9 1.9-1.6 1.4-.2 2.1-2.1.4L9.6 15 8 13.8 6.4 15l-1.2-1.7-2.1-.4-.2-2.1L1.3 9.4l.9-1.9-.5-2.1 1.8-1.1.7-2 2.1.2Z"/><path class="card__badge-tick" d="M5.4 8.2l1.8 1.8 3.4-3.6"/></svg>
</span>
<span class="card__role">Product designer<span class="card__at"> at Fieldnote</span></span>
</span>
<span class="chip" data-chip>
<svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2.6" y="3.4" width="10.8" height="10" rx="2.4"/><path d="M2.6 6.6h10.8M5.6 2v2.6M10.4 2v2.6"/></svg>
<span>Free from Dec 2</span>
<span class="chip__shine" aria-hidden="true"></span>
</span>
</header>
<ul class="facts" data-line>
<li><b>8</b> yrs</li>
<li><b>64</b> shipped</li>
<li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.9l1.8 3.8 4.1.5-3 2.9.8 4.1L8 11.2l-3.7 2 .8-4.1-3-2.9 4.1-.5Z"/></svg><b>4.9</b> rating</li>
</ul>
<div class="actions" data-line>
<button class="btn btn--main" type="button" data-hire>
<span class="btn__fill" aria-hidden="true"></span>
<span class="btn__face">
<span class="btn__words">Hire Noa</span>
<svg class="btn__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.6M8.6 4.4 12.2 8l-3.6 3.6"/></svg>
</span>
</button>
<button class="btn btn--ghost" type="button">
<span class="btn__face">
<svg class="btn__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.8 4.4c0-.9.7-1.6 1.6-1.6h7.2c.9 0 1.6.7 1.6 1.6v5c0 .9-.7 1.6-1.6 1.6H7.2L4.4 13.2V11c-.9 0-1.6-.7-1.6-1.6Z"/></svg>
<span>Message</span>
</span>
</button>
</div>
<div class="skills-head" data-line>
<span>Skills</span>
<span class="level" aria-hidden="true">
<span class="level__ruler"><span class="level__ticks" data-ticks></span><span class="level__needle" data-needle></span></span>
<span class="level__deg" data-deg>0.0°</span>
</span>
</div>
<!-- the well keeps its place in the card; the tray inside leans, and the pills are its children -->
<div class="well" data-well data-line>
<div class="tray" data-tray role="list" aria-label="Skills"></div>
</div>
<p class="hint" data-line>Lean the pointer to pour, grab a skill to throw it</p>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.
41 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 “Skill pills tray” from Animorio and fit it into my siteEvery pill is a real HTML element, measured with offsetWidth; for the physics it is a rectangle with its corners rounded by half its height, that is a capsule: a segment (width - height) long and a radius. Mass follows the area, the rectangle's inertia is multiplied by STEADINESS, so the pills turn little and stay readable.
Two capsules touch when the distance between their segments is less than the sum of the radii. Both ends and the middle of each are tried against the other's segment and up to two contacts far from each other are kept: with two points a pill resting on another does not rock. The walls are lines: the floor, the sides and a high hidden ceiling.
At 120 steps a second: gravity on the velocities, then ten rounds over the contacts with the accumulated normal impulse (never negative) and Coulomb friction up to FRICTION times the normal, the bounce decided once from the arrival speed, then the positions, and two passes that push apart whatever still overlaps.
The pointer, from one edge of the card to the other, takes the lean from -TILT to +TILT degrees with a spring. In the tray's frame gravity becomes (sin θ, cos θ) times its strength. The tray shows only part of it (LOOK, at most LOOK_MAX degrees) so it never covers the words; friction is low on purpose, since a pill slides only when the tangent of the lean beats the friction.
The touched point is looked up in the physics, in the tray's rotated frame, so it works with a mouse, a finger and the drawn pointer. The grabbed pill is tied to the pointer by a soft point joint (a 2 by 2 matrix with mass and inertia): it hangs where it was taken and swings; let go, it keeps its velocity and flies.
A springy squash on hard landings, a shadow that rises with the speed, the word that turns over when the pill is upside down, the level's needle and degrees. A GSAP timeline brings a drawn pointer that leans the tray, throws the highest pill and at the end opens the right wall and pours everything out; a real hand stops it, and it comes back after IDLE seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
SKILLS | script.js | Product design, Motion, … | The pills, separated by commas: the first one wears the accent. |
GRAVITY | script.js | 1 | How hard the pills fall. |
BOUNCE | script.js | 0.28 | How much they bounce. |
FRICTION | script.js | 0.16 | How much they grip each other: low, so a small lean is enough to slide them. |
TILT | script.js | 9 | Degrees gravity leans with the pointer at the edge of the card. |
POUR | script.js | 17 | Degrees of the lean that pours the pills out at the end of the loop. |
DROP_GAP | script.js | 0.14 | Seconds between one pill and the next as they fall in. |
LOOP | script.js | true | The drawn pointer plays again and again. |
For a person's card in a portfolio, a freelance site or a hiring platform: skills, tools, interests or services that become something to touch. It also works for a product's tags, the filters of a search or the ingredients of a dish, when you want a moment of play without losing the page's seriousness.
The same animation with adapted sizes: the tray is measured on the height too, the pills take a height and a type size in proportion to the tray, and everything is recomputed on resize. A finger grabs and throws a pill (touch-action: none on the tray) and a finger moved sideways leans the tray like the mouse; on a narrow card «at Fieldnote» makes room for the availability.
The pills are already resting in the tray, worked out in an instant before they show, and fade in with the card. The tray does not lean, there is no pointer on its own and no throwing.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP 28 KB.
Tested on 12 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.