Skip to content
animorio
IT
Back to the library

Metal tiles background

Backgrounds, HoverCanvas, GSAP, CSS onlyMediumCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

An animated background for the front page of an AI app, Alloy: a wall of anodised aluminium tiles, drawn in real 3D on a canvas, that lean toward the light under the pointer like metal sunflowers. A reflection runs across each face, the edge facing the light turns ice blue and a soft shadow slips out on the far side. A tap or the button sends a ring wave that lifts them and lets them settle back on springs; on its own the light walks the wall and presses the button.

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>
<!--
  "Metal tiles 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 background of metal tiles that tilt toward 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>
  <main class="stage" data-stage>
    <!-- the hero of an AI design studio. Behind it a wall of anodised aluminium tiles, drawn on a canvas in real 3D:
         under the light each tile leans toward it, its face catches a running reflection and the edge that faces the
         light turns ice blue. A press sends a ring wave across the wall that settles on springs. Left alone, the light
         walks the wall by itself -->
    <canvas class="wall" data-wall aria-hidden="true"></canvas>
    <span class="veil" aria-hidden="true"></span>
    <span class="grain" aria-hidden="true"></span>

    <section class="hero" data-hero>
      <a class="chip" href="#" data-chip>
        <span class="chip__tag">New</span>
        <span class="chip__words">Alloy 2.0 drafts whole flows</span>
        <svg class="chip__icon" viewBox="0 0 12 12" aria-hidden="true"><path d="M4.4 2.6L7.8 6 4.4 9.4"/></svg>
      </a>
      <h1 class="title" data-title>
        <span class="title__line"><span class="title__in">Design that</span></span>
        <span class="title__line"><span class="title__in">thinks ahead.</span></span>
      </h1>
      <p class="lead" data-lead>Alloy turns a rough sketch into working, on-brand screens while you are still talking about them.</p>
      <div class="actions" data-actions>
        <button class="btn" type="button" data-btn>
          <span class="btn__face" data-face>
            <span class="btn__sheen" aria-hidden="true"></span>
            <span class="btn__words">Start building</span>
            <svg class="btn__icon" viewBox="0 0 16 16" aria-hidden="true"><path data-arrow d="M3 8h9M8.5 4.2L12.3 8 8.5 11.8"/></svg>
          </span>
        </button>
        <span class="note">Free for teams of three</span>
      </div>
    </section>
    <p class="sr" aria-live="polite" data-live></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.

24 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 “Metal tiles background” 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 a near black page sits a wall of dark aluminium square tiles, with barely rounded corners, thin joints and a hair of light on each top edge; every tile has a slightly different anodised tone, like a real batch. On opening the tiles come up from the dark in a wave from the middle; above them rise the badge ‘New, Alloy 2.0 drafts whole flows’, the title ‘Design that thinks ahead.’ in brushed silver, line by line from below, a sentence and the light ‘Start building’ button with its arrow. A light walks the wall by itself: around it the tiles lean toward it, each on its own spring, and as they turn they catch a reflection that runs along the face; the edge facing the light turns ice blue, a shadow slips out on the opposite side and a faint glow lights the joints under it. When it moves fast it leaves small rings behind. The title's highlight and the button's sheen follow the light. Then the light reaches the button and presses it: the button gives and comes back with a bounce, the arrow jumps forward, and a ring wave crosses the whole wall, lifts the tiles a hair, turns them outward and lets them settle back on springs. With the pointer, the light follows it on a spring; a tap sends a wave from where you touched.

How it works

Each tile is a plane with its own normal

A tile holds only two numbers, ax and ay: the slope of its plane, z = −(ax·x + ay·y). The four corners are worked out on that plane and projected with a 900 pixel perspective, so the side that rises grows a little, and the normal (ax, ay, 1) says how it catches the light.

It leans toward the light, on a spring

Each tile's target is the direction toward the light times a Gaussian bell on the distance (REACH) and a ramp from zero: the ones right under it stay flat and brightest, a little further out they lean the most, and there is never a dark hole in the middle. Each tile chases its target on its own spring (STIFFNESS, DAMPING), so it passes the mark by a hair and settles.

The running reflection

The face is filled with a linear gradient along the line toward the light, with five colours worked out at five points of the face: some diffuse, a broad specular (Blinn-Phong with exponent 36) and the side toward the light a touch lighter. When the tile turns, the peak moves along the face, and that is the running reflection. The light falls off with a bell over the distance, so it fades across several tiles, and goes through a soft curve, 1 − e^(−1.5x), that stops at a light silver grey: the metal never burns into white.

Blue edges, shadows and joints

Each side lights up blue as much as it faces the light (the product of its normal and the light's direction). Before the tiles come the shadows, the same shape moved to the side away from the slope, and under everything a radial glow that only shows in the joints.

The ring waves

A tap, the button or the light moving far drop a ring that grows at 820 pixels a second. The tiles it crosses get a push outward and lift: the spring does the rest, and the wave comes back on its own.

The pilot and the pointer

A repeating GSAP timeline walks the light across the wall by itself and brings it to the button, which it presses. As soon as the pointer moves the pilot stops and the light follows it; after 2.6 seconds of stillness it starts again. The title is text clipped to a silver gradient with a point of light that follows the wall's light.

Values to change

NameFileDefaultWhat it changes
TILEscript.js58The side of a tile, in pixels (a little less on small screens).
GAPscript.js4The joint between the tiles, in pixels.
TILTscript.js24How far a tile leans toward the light, in degrees.
REACHscript.js230How far the light reaches, in pixels.
SHINEscript.js1How bright the reflection on the metal is.
STIFFNESSscript.js150The spring of each tile: higher is quicker.
DAMPINGscript.js10Lower lets the tiles pass the mark and wobble.
WAVEscript.js1How strong the ring wave of a tap is.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the light's walk.

Try them in the Playground

When to use it

Behind the hero of the front page of an AI app, a design tool, a hardware product or a brand that wants to feel made of real materials: a background that reacts without stealing the scene from the title.

On phones

The same animation with adapted sizes: the tiles shrink with the screen's height and width, the light reaches less far and sits lower, the title and the sentence are sized on the height too. With a finger the light goes where you touch and every tap sends a wave.

With reduced motion

No movement: the tiles stay flat, the light stays still at the top centre and fades in and out; the words fade in and there are no waves.

Pitfalls

  • With a tight specular the reflection vanishes if only one colour is worked out per tile: it must be sampled at several points of the face, or the tile flashes all at once instead of having the light cross it.
  • The light must be stopped at a light silver grey with a soft curve and made to fall off with distance: left free, the nearby tiles become solid white squares, and if the lean is strongest right under the light the middle tiles turn away from the reflection and leave a white ring with a dark hole, which looks like a spotlight, not metal.
  • The light's sizes (radius, height, falloff) must scale with the screen: in the phone's box the desktop light lights up the whole wall and the sentence can no longer be read.
  • All the shadows are drawn before all the tiles: drawn one by one they would end up on top of the next tile.
  • The pilot starts again from where the pointer left the light, not from the beginning, or the light jumps.

Libraries

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.

Testing

Tested on 6 November 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