Skip to content
animorio
IT
Back to the library

Rolling full stop headline

Physics, HoverGSAPMediumCompressed weight: Demo 6.3 KBGSAP 28 KBFreeDownload the zip

A minimal headline with physics inside its full stop: a short word set large on warm white, resting on a thin baseline, and the full stop is a small orange ball. When the pointer moves sideways the line tilts a hair that way and the ball really rolls: it speeds up, friction slows it, it knocks softly against the last letter or against the stop at the end of the line and squashes a little. When the pointer stops the line levels out and the ball rolls home, goes one pixel past its place and settles.

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>
<!--
  "Rolling full stop headline" 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 headline with the rolling full stop</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 headline sits on a thin baseline; its full stop is a small ball that rolls on it when the line tilts -->
    <div class="palco" data-palco>
      <h1 class="parola" data-word aria-label="Level."></h1>
      <svg class="binario" data-svg aria-hidden="true">
        <defs>
          <radialGradient id="lucePallina" cx="36%" cy="30%" r="72%">
            <stop offset="0" style="stop-color: var(--luce)" />
            <stop offset="0.42" style="stop-color: var(--accento)" />
            <stop offset="1" style="stop-color: var(--accento-scuro)" />
          </radialGradient>
        </defs>
        <path class="riga" data-line d="" />
        <path class="fermo" data-stop d="" />
        <ellipse class="ombra" data-shadow cx="0" cy="0" rx="0" ry="0" />
        <g data-ball>
          <circle class="pallina" data-ball-body cx="0" cy="0" r="0" fill="url(#lucePallina)" />
          <path class="segno" data-mark d="" />
        </g>
      </svg>
    </div>
    <p class="nota" data-note>Move sideways to tilt the 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>

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.

19 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 “Rolling full stop headline” 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 the word ‘Level’ appears, large and black, resting on a thin line that runs under it and carries on to the right for a stretch, up to a small vertical stop. The letters rise one after another, then the full stop drops from above onto the line: a small orange ball with a highlight; it lands, squashes, makes a little hop, a smaller one-pixel hop and stops, and the line gives way by a pixel under it. When the pointer moves to the right the whole headline with its line tilts a hair that way and the ball starts to roll: it speeds up, a pale seam on its surface turns as it rolls, friction slows it down; if it reaches the end it knocks against the stop, which bends and springs back, and bounces back more slowly. To the left it rolls against the last letter, which gives way by a pixel. When the pointer stops the line levels out with a small rock and the ball rolls back to its place after the word, goes one pixel past it and settles. A click or a tap gives it a push. If nobody touches it, an invisible pointer tilts the line now and then.

How it works

Only the sideways speed

All that counts about the pointer is how fast it moves horizontally: the speed, in pixels per second, fades by itself when it stops and becomes the tilt, 1.6 degrees at most. The tilt chases that value on a spring that rocks a little as it levels out.

A ball that rolls

The ball feels five sevenths of the slope, like a solid sphere that rolls instead of sliding, minus a constant friction and a little drag; all in em, so a resize keeps it in place. Four physics steps per frame.

Two walls

On the left the wall is the real ink edge of the last letter, measured with measureText; on the right the stop at the end of the line. Against a wall the ball keeps 42 per cent of its speed, squashes sideways on a spring and the wall gives way: the letter by a pixel, the stop bends.

Home with one pixel

Once the pointer stops, the ball heads for a point one pixel past its place on a spring with no bounce, then GSAP brings it back the last pixel with sine.inOut. It is a measured overshoot, the same at any distance.

The line that gives

The line is an SVG path rewritten every frame with a half-pixel dip under the ball, deeper when it lands; a pale seam on the ball turns by the distance travelled over the radius.

Values to change

NameFileDefaultWhat it changes
WORDscript.jsLevelThe word, without its full stop: the ball is the full stop.
TILTscript.js1.6How far the line tilts at most, in degrees.
SENSITIVITYscript.js420The pointer speed, in pixels per second, that tilts the line all the way.
GRAVITYscript.js140How strongly the ball runs down the slope.
FRICTIONscript.js0.35Friction: how quickly the ball loses speed.
BOUNCEscript.js0.42How much speed the ball keeps after a knock, from 0 to 1.
TRACKscript.js1.5How much line there is after the word to roll on, in em.
BALLscript.js0.19The size of the ball, in em of the headline.
IDLEscript.js0.24Seconds of stillness before the ball rolls home.
SPEEDscript.js12 = twice as fast, 0.5 = half as fast.
AUTOPILOTscript.jstrueAn invisible pointer tilts the line when nobody touches it.

Try them in the Playground

When to use it

For the opening of a portfolio, a design studio or a product about balance and precision: a headline that answers the pointer without filling the page.

On phones

The same animation with adapted sizes: the word is as big as the box allows, in width and height, and the line tilts as you drag a finger sideways.

With reduced motion

The headline fades in with the full stop already in place; the line does not tilt and the ball does not roll.

Pitfalls

  • The ball’s position has to be kept in em, not pixels: on resize the word changes size and the ball would stay where there is no line any more.
  • The left wall is not the letter’s layout edge, which includes the font’s side bearing: take it from the ink, with actualBoundingBoxRight.
  • The invisible pointer starts its loop again by jumping back: a jump of hundreds of pixels in one frame has to be ignored, or the line tilts all at once.

Libraries

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.

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