
Wrecking-ball logo
Intro, Physics, SVG, Text
A minimal physics animation: the same push, three surfaces. Three words, ICE, WOOD and FELT, sit at the start of three hairlines; a thin vermilion bar winds up and strikes them all at once with the same speed, then friction does the rest: ICE glides almost to the end, WOOD stops a third of the way, FELT barely leaves and judders to a halt. Braking, the words lean forward from their feet; stopping, they rock back by a hair and settle; behind them stays the trail of the friction and under them the metres are read. Any word can be flicked with a finger.
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>
<!--
"Three words, three frictions" 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>Three words pushed across three frictions</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="scena" data-stage>
<div class="banco" data-bench>
<!-- the one push: a thin accent bar that strikes the three words at once -->
<span class="spinta" data-pusher aria-hidden="true"><span class="spinta-tratto"></span></span>
<!-- three tracks: same push, three frictions; the script fills each one -->
<div class="pista" data-track data-word="ICE" data-mu="ice"></div>
<div class="pista" data-track data-word="WOOD" data-mu="wood"></div>
<div class="pista" data-track data-word="FELT" data-mu="felt"></div>
</div>
<p class="nota" data-note>Flick a word along its line</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.
17 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 “Three words, three frictions” from Animorio and fit it into my siteThe speed of the knock is worked out from the line: the slipperiest word must reach REACH of its line in GLIDE seconds, so v0 = 2d / t. The others leave at the same v0 and brake with a deceleration proportional to their friction: at 0.3 against 0.1 they stop a third of the way.
Every word has a position and a speed; every requestAnimationFrame frame the speed loses a · dt until it reaches zero, never turning round because of friction. At the end of the line it bounces back with 30% of its speed.
The friction of each line wobbles a little with the distance (a sine on the position), the more the rougher the line is: on ice you cannot see it, on felt the word brakes in jerks and stops trembling.
The lean chases a target proportional to the braking on a spring (stiffness 260, damping 13) and becomes skewX on the word’s child, pivoting at the bottom. When the word stops the target drops to zero and the spring passes upright by a hair; at the knock it gets a push backwards.
Every letter has its own width on the wdth axis: at the knock GSAP squeezes it by SQUEEZE points, from the back letter to the front with 35 milliseconds between them, and brings it back to 100 with elastic.out. The trail is a div as wide as the distance covered, the metres are read from the position.
| Name | File | Default | What it changes |
|---|---|---|---|
MU_ICE | script.js | 0.1 | The friction of the first line: lower slides further. |
MU_WOOD | script.js | 0.3 | The friction of the second line. |
MU_FELT | script.js | 0.75 | The friction of the third line: felt grips and judders. |
GLIDE | script.js | 2.4 | How many seconds the slipperiest word glides. |
REACH | script.js | 0.86 | How far the slipperiest word gets, from 0.3 to 1 of its line. |
LEAN | script.js | 9 | How many degrees the words lean while braking. |
SQUEEZE | script.js | 16 | How much the knock squeezes the letters, in points of the width axis. |
HOLD | script.js | 1.8 | How many seconds the words rest before going back. |
SPEED | script.js | 1 | 2 = twice as fast, 0.5 = half as fast. |
LOOP | script.js | true | Pushes again and again. |
For the page of a physics course or a science museum, to show in an app the difference between three options with the same gesture, for the headline of a shop that sells materials, floors or fabrics, or for a portfolio that wants an experiment instead of a sentence.
The same animation with adapted sizes: the words are as big as the box allows in width and height, the push is worked out on the line and the words are flicked with a finger.
No sliding and no leaning: the words fade in already where the push would have left them, with their trails, the metres and the stop mark.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.3 KB; the libraries: GSAP 28 KB.
Tested on 1 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.