Skip to content
animorio
IT
Back to the library

Engraved metal headline

Text, HoverGSAP, CSS only, CanvasMediumCompressed weight: Demo 8.7 KBGSAP 28 KBFreeDownload the zip

The opening of a product page on a plate of brushed aluminium: a tip engraves the headline letter by letter, with sparks and a cut that shines warm and cools down, then traces the drawing of the lamp. The light runs along the brushing following the pointer and slips into the grooves of the letters, and a warm reflection drifts across the plate on its own.

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>
<!--
  "Engraved metal 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 engraved in brushed metal, with light in the grooves</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="stage" data-stage>
    <!-- the opening of a product page: a plate of brushed aluminium with the headline engraved letter by letter;
         the light runs along the brushing and slips into the grooves where the pointer is -->
    <div class="floor" aria-hidden="true"></div>
    <div class="tilt" data-tilt>
      <section class="plate" data-plate>
        <div class="plate__grain" aria-hidden="true"></div>
        <div class="plate__sheen" aria-hidden="true"></div>
        <div class="plate__warm" aria-hidden="true"></div>
        <div class="plate__rim" aria-hidden="true"></div>

        <span class="screw screw--tl" aria-hidden="true"><i></i></span>
        <span class="screw screw--tr" aria-hidden="true"><i></i></span>
        <span class="screw screw--bl" aria-hidden="true"><i></i></span>
        <span class="screw screw--br" aria-hidden="true"><i></i></span>

        <header class="plate__head">
          <span class="brand engr">
            <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M7.6 8.2 12 16.4l4.4-8.2"/></svg>
            Varrow
          </span>
          <span class="spec engr">Anodised 6061-T6</span>
        </header>

        <!-- the lamp itself, engraved as a technical outline beside the headline -->
        <svg class="lamp" data-lamp viewBox="0 0 60 120" aria-hidden="true">
          <path d="M9 113.5h36M13 113.5v-3.5c0-1.4 1-2.4 2.4-2.4h23.2c1.4 0 2.4 1 2.4 2.4v3.5"/>
          <path d="M26.5 107.6 14.6 63.4"/>
          <path d="M29.6 106.8 18 63.2" class="lamp__thin"/>
          <circle cx="15.6" cy="61" r="3.4"/>
          <path d="M17.8 58.6 42.4 35.4"/>
          <path d="M20.2 61.2 43.8 39" class="lamp__thin"/>
          <circle cx="44.6" cy="33.4" r="2.8"/>
          <path d="M45 38.6 49.2 35.4 58.4 40.8Q56.2 49.2 47 49.8Z"/>
          <path d="M49.6 48.6a4.6 4.6 0 0 0 6.6-5.4" class="lamp__thin"/>
        </svg>

        <h1 class="title" data-title aria-label="Cut from one block.">
          <span class="title__line">Cut from</span>
          <span class="title__line">one block.</span>
        </h1>

        <p class="sub engr" data-sub>The Varrow desk lamp, machined from a single billet of aluminium.</p>

        <footer class="plate__foot" data-foot>
          <span class="serial engr">Serial VR-0417</span>
          <button class="pill" type="button" data-pill><span class="engr">Reserve</span><span class="pill__price engr">$340</span></button>
        </footer>
      </section>
    </div>
    <canvas class="sparks" data-sparks aria-hidden="true"></canvas>

    <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>

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.

21 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 “Engraved metal 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 an almost black background a plate of brushed aluminium arrives, its four screws turning into place. At the top the Varrow mark and the alloy are engraved, below them the line and the serial number, each with a quick cut from the left. Then a tip engraves the headline «Cut from one block.» letter by letter: the cut moves through each letter with a small white and warm light, throws sparks that fall and go out, and the freshly cut letter shines warm and cools into the grey of the groove. With the headline done, the same tip traces the technical drawing of the lamp beside it, stroke after stroke. The light is a tall narrow band, like the one on real brushed metal: it follows the pointer on the plate, slips into the grooves of the nearby letters and brightens their bottom, and the lip of every engraving lights up on the side away from the light. The plate leans slightly towards the pointer and a warm reflection slides from one side to the other on its own. Pressing on the plate brings the light closer, narrower and stronger; the Reserve button is engraved too, it sinks when pressed and its label rolls to Reserved.

How it works

The brushing

The plate is an aluminium gradient with an SVG feTurbulence noise stretched horizontally on top (baseFrequency 0.0018 by 0.75) and very fine lines every three pixels, in overlay: the long strokes of brushed metal.

Light in a band

Metal brushed horizontally reflects light in a vertical band. Two tall, narrow elliptical radial gradients sit at the light with mix-blend-mode soft-light; LIGHT_BAND sets their width, and pressing the plate narrows them.

The groove in two layers

Every letter is a span with a clip-path holding two pseudo-elements with the same letter: underneath the lip, made only of text-shadow (light on the side away from the light, dark on the other), on top the bottom of the groove, a gradient with the brushing lines clipped to the text with background-clip. So the shadows never cover the bottom.

Light in the grooves

Every frame the light catches up with the pointer with a little lag. For each letter a bell curve on the horizontal distance from the band (--lit) brightens the bottom of the groove, and the direction to the light (--hx, --hy) moves the lip.

The engraving

Each letter’s --cut goes from 0 to 1 in CUT_TIME seconds and opens the clip-path from the left; meanwhile the tip is a glow on canvas at the edge of the cut, with SPARKS sparks per frame falling with gravity. --fresh starts at 1 and brings the letter back from warm to grey in 1.3 seconds. The lamp drawing is engraved with stroke-dashoffset, and the tip follows getPointAtLength.

Values to change

NameFileDefaultWhat it changes
CUT_TIMEscript.js0.17The seconds the tip takes to engrave one letter.
LIGHT_BANDscript.js1How wide the band of light on the brushing is.
SPARKSscript.js3How many sparks the tip throws every frame.
TILTscript.js5How many degrees the plate leans following the pointer.
LAMP_SPEEDscript.js0.006How slowly the tip traces the drawing of the lamp.
WARM_DRIFTscript.js0.22How fast the warm reflection drifts on its own.
PAUSEscript.js1.4The seconds of pause of the drawn pointer at the end of a round.

Try them in the Playground

When to use it

For the opening of the page of a well-made object: a lamp, a watch, a knife, a tool, a brand that works metal; when the headline should feel like an engraved mark rather than type, and the light should make you feel the material.

On phones

The same plate sized on the width and height of the box, the same engraving with sparks to scale; the light follows the finger, and holding a finger on the plate brings the light closer.

With reduced motion

The plate and the lines fade in already engraved, with no tip and no sparks; the light stays still and the plate does not lean, the drawn pointer is hidden.

Pitfalls

  • With clip-path the letter becomes a stacking context: a text-shadow on the same element as the text clipped with background-clip would end up above the bottom of the groove. That is why lip and bottom live in two pseudo-elements, the bottom last.
  • The letter positions are measured with offsetLeft and offsetTop inside the plate, not with getBoundingClientRect: the plate is tilted in 3D and the rectangles would change every frame.
  • A stroke hidden with stroke-dashoffset and round caps leaves a dot at its start: the lamp strokes stay at zero opacity until the tip starts tracing them.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 28 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