
Ridge line background
Backgrounds, WebGL, Hover
An animated background for a cloud platform’s hero, on dark titanium: behind the headline a face of spun metal, with the lathe’s very fine concentric lines and a chamfered step around the words. The lamp’s bow-tie glint swings round the centre to always point at the pointer, a weaker copper light turns on the other side; on the button the light narrows, and pressed, the lathe spins up again and a polishing wave runs out to the edge. A hand-written WebGL shader.
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>
<!--
"Spun metal background" 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 spun metal background with the glint that follows the pointer</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>
<!-- the hero of an invented cloud platform, Mill, over a face of spun titanium: fine concentric grooves turned on a
lathe, a stepped bezel around the words, and a lamp whose bow-tie glint swings round to follow the pointer -->
<main class="stage" data-stage>
<canvas class="metal" data-metal aria-hidden="true"></canvas>
<span class="grain" aria-hidden="true"></span>
<section class="hero" aria-labelledby="hero-title">
<p class="pill" data-in>
<span class="pill__tag">New</span>
<span class="pill__text">Mill 3 ships zero-downtime deploys</span>
<svg class="pill__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5"></path></svg>
</p>
<h1 class="title" id="hero-title" data-in>Infrastructure,<br>machined to fit</h1>
<p class="lede" data-in>Deploy, observe and scale from one quiet console. Every edge finished, every request accounted for.</p>
<div class="actions" data-in>
<button class="cta" type="button" data-cta>
<span class="cta__face" data-face>
<span class="cta__shine" aria-hidden="true"></span>
<span class="cta__row cta__row--idle" data-row="idle">
<span class="cta__label">Start building</span>
<svg class="cta__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.5 4 12.5 8l-4 4"></path></svg>
</span>
<span class="cta__row cta__row--busy" data-row="busy" aria-hidden="true">
<svg class="cta__spin" viewBox="0 0 16 16"><circle cx="8" cy="8" r="5.6"></circle></svg>
<span class="cta__label">Spinning up</span>
</span>
<span class="cta__row cta__row--done" data-row="done" aria-hidden="true">
<svg class="cta__tick" viewBox="0 0 16 16"><path d="M3.6 8.4 6.6 11.2 12.4 4.9"></path></svg>
<span class="cta__label">Workspace ready</span>
</span>
</span>
</button>
<span class="note">14 days free, no card</span>
</div>
</section>
<svg class="ghost" data-ghost viewBox="0 0 20 20" aria-hidden="true"><path d="M4 2.5v13.2l3.5-3.3 2.4 5.3 2.3-1-2.4-5.2 4.8-.2z"></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.
27 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 “Spun metal background” from Animorio and fit it into my siteThe WebGL canvas draws a single triangle bigger than the screen; the fragment shader works out, for each pixel, its distance from the centre of the headline and its angle, that is which line of the lathe it falls on.
Every line RING pixels wide has a random tone, over it there are wider bands and a slow change along the circle, out of phase for each line: when the lathe turns, that is what makes the metal shimmer.
Metal brushed in circles reflects where the line is perpendicular to the light: the product of the direction from the centre and the lamp’s direction, raised to SHARP, draws a bow tie through the centre pointing at the lamp. Stronger near the lamp and on its side, modulated by the lines.
Around the headline, at BEZEL times the short side, a narrow band works as a chamfer: its normal faces the centre on one side and outwards on the other, so the side facing the lamp lights up and the other darkens. Inside, the plate is a little lower and darker, so the headline stays readable.
The lamp follows the pointer on a hand-written spring; with no pointer it goes back up to the right and sways slowly. On the button it moves to its centre and the bow tie narrows. The copper light sits on the other side, with COPPER.
A press spins the lathe up again (the speed rises and falls with GSAP), sends a ring of light out to the edge and moves the button through three states. After AUTO_PILOT seconds without a pointer a looping timeline moves a drawn pointer; the first real movement stops it.
| Name | File | Default | What it changes |
|---|---|---|---|
RING | script.js | 1.6 | Spacing of the lathe lines, in pixels. |
SHARP | script.js | 9 | How narrow the bow-tie glint is (higher, thinner). |
SHINE | script.js | 1 | How strong the lamp light is. |
COPPER | script.js | 0.6 | How strong the second, copper light is (0 off). |
BEZEL | script.js | 0.46 | Radius of the step around the headline, relative to the short side (0 no step). |
SPIN | script.js | 0.15 | How fast the lathe turns on its own, turns per second (0 still). |
FOLLOW | script.js | 0.9 | How much the light follows the pointer (0 not at all, 1 fully). |
AUTO_PILOT | script.js | 4 | After how many seconds without a pointer the drawn one starts moving (0 never). |
For the hero of a developer platform, a SaaS, a hardware brand or a «made with care» product: when you need a dark background that feels like real material and leaves the headline in front.
Same animations: the centre of the lathe sits behind the headline, the step is sized on the short side of the screen, the lamp follows the finger; text and button fit inside the box.
With reduced motion the metal is already lit and still, with the lamp in place, the words only fade in and the button goes straight to «Workspace ready».
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.5 KB; the libraries: GSAP 28 KB.
Tested on 3 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.