Skip to content
animorio
IT
Back to the library

Skater spin name

Physics, TextGSAPMediumCompressed weight: Demo 5.9 KBGSAP 28 KBFreeDownload the zip

A minimal physics animation built on the skater's law: pull the arms in and you spin faster. The letters of a word sit in a circle on a thin track and turn slowly; press and hold and they are pulled towards the centre, each on its own spring, and the word speeds up by exactly as much as conservation of angular momentum says. Let go: they swing back out, one pixel past the track, and the spin slows down. One letter in the accent colour, with a trail as long as the speed.

The code

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>
<!--
  "Skater spin name" 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 name that spins like a skater</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>
    <!-- the word turns around a centre like a skater; hold to pull the letters in and it spins faster -->
    <div class="palco" data-palco>
      <svg class="segni" data-marks aria-hidden="true">
        <circle class="orma" data-open-ring></circle>
        <circle class="pista" data-ring></circle>
        <path class="scia scia-lunga" data-trail-b></path>
        <path class="scia" data-trail></path>
        <g data-axis>
          <line class="asse" data-axis-a></line>
          <line class="asse" data-axis-b></line>
        </g>
      </svg>
      <h1 class="ruota" data-wheel aria-label="Momentum"></h1>
    </div>
    <p class="lettura" data-readout><span data-rev>0.00</span> rev/s</p>
    <p class="nota" data-note>Hold to pull in, flick to spin</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>

Playground

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.

16 values to change

Or ask your AI assistant for it

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 “Skater spin name” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On empty warm white a thin grey circle draws itself and, one at a time, the eight letters of ‘MOMENTUM’ arrive around it, each with its top facing out; a small thin cross in the middle is the axis. An invisible push sets the word turning slowly clockwise; the first M is blue and leaves a thin trail on the track behind it, as long as the speed, with a second, fainter trail behind that. Underneath, small, you can read how many turns a second it makes. Then the invisible hand ‘pulls the arms in’: the letters are drawn towards the centre, each on its own spring and a hair out of step with the others, the track shrinks with them, they get narrower and heavier, and the word speeds up almost four and a half times, like a skater in a pirouette; a dotted circle stays where the track used to be. As the spin speeds up the letters lean back a little, and straighten when the speed settles. Then the arms open again: the letters swing back out, one pixel past the track, settle, and the spin slows down again. A little friction takes some speed away on every turn. Pressing and holding with the mouse or a finger pulls the arms in, and dragging around the centre gives it more spin, one way or the other; the cross in the middle gives a little under the finger. If nobody touches it for a few seconds, the invisible hand takes over again.

How it works

Angular momentum stays

The word has an angular momentum L, a number. Every frame the speed is L divided by the inertia, the mean of the squared radii plus a small fixed body in the middle: pull the letters in and the inertia drops and the speed rises on its own, with no hand-written animation.

A spring for each arm

Each letter has its radius on a spring (stiffness 150, damping at 74 percent of critical) chasing the open or the pulled-in radius. The stiffnesses differ by a few percent, so the letters arrive a hair out of step and on the way back pass the track by one pixel.

Radii as shares

The radii are shares of the box, the shorter of width and height: on resize only the size in pixels changes, the spin and the physics stay the same, and the word fits the phone box in every state.

The trail and the axis

The trail is an SVG arc on the track, as long as the speed, starting just behind the first letter; the axis in the middle turns with the word. Width and weight of the letters go through font-variation-settings: narrower when they race, heavier when they are pulled in.

The invisible hand

A repeating GSAP timeline gives the push (L rises with power2.out) and then pulls the arms in and out twice. A touch pauses it, and it starts again after a few seconds without touches. When dragging, the pointer's angular speed around the centre is blended into the word's.

Values to change

NameFileDefaultWhat it changes
WORDscript.jsMOMENTUMThe word around the track.
OPEN_RADIUSscript.js0.33The radius with the arms open, as a share of the box.
PULL_INscript.js0.4How far the letters are pulled in, as a share of the open radius: smaller spins faster.
PUSHscript.js0.45Turns per second of the push, with the arms open.
FRICTIONscript.js0.1How quickly the spin fades (0 = never).
SPRINGscript.js150How stiff the arms are: higher pulls in quicker.
SPEEDscript.js1The invisible hand: 2 = twice as fast, 0.5 = half as fast.
AUTOscript.jstrueThe invisible hand that pushes and pulls in when nobody touches.

Try them in the Playground

When to use it

For the logo or name of a motion studio, a fitness or dance app, an ice rink, or the page of a science museum: a name you touch that answers with a real law.

On phones

The same animation with adapted sizes: the track is as big as the box allows, in width and height; hold with a finger and drag around the centre to give it spin.

With reduced motion

The word appears already on its track, still and with the arms open, in a fade; it does not turn and touching does not move it.

Pitfalls

  • Without a fixed inertia in the middle the speed goes as one over the radius squared and, with the letters close to the centre, explodes: the small fixed body keeps it under five turns a second.
  • The time step has to be capped (one thirtieth of a second at most): coming back to a hidden tab the springs and the spin would jump.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.9 KB; the libraries: GSAP 28 KB.

Testing

Tested on 31 October 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations