Skip to content
animorio
IT
Back to the library

Isometric grid background

Backgrounds, SVG, HoverGSAP, CanvasMediumCompressed weight: Demo 7.9 KBGSAP 28 KBFreeDownload the zip

The opening of Kestrel Works, a made-up infrastructure studio, on warm paper: behind the headline an isometric grid of hairlines at 30 degrees draws itself from the centre in waves. Under the pointer the cells rise into small cubes, each on its own measured spring, and settle back staggered when the pointer leaves; when nobody touches, a row of cubes crosses the grid on its own. Minimal style, a single cobalt accent.

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>
<!--
  "Isometric grid 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>Isometric grid background</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the opening of an invented infrastructure studio, Kestrel Works, on warm paper: an isometric grid of hairlines
       that draws itself from the centre in waves. Under the pointer the cells rise into small cubes on a measured
       spring and settle back, staggered, when it leaves; when nobody touches, a row of cubes crosses the grid on its
       own. The words sit in a clean ellipse where the cubes barely rise -->
  <main class="stage" data-stage>
    <canvas class="sheet" data-sheet aria-hidden="true"></canvas>
    <span class="grain" aria-hidden="true"></span>

    <section class="hero" data-hero aria-labelledby="hero-title">
      <p class="kicker" data-in>Kestrel Works <span class="kicker__soft">Infrastructure studio</span></p>
      <h1 class="title" id="hero-title"><span class="title__line" data-in>Built block</span> <span class="title__line" data-in>by block.</span></h1>
      <p class="lede" data-in>Depots, bridges and data halls, planned one module at a time.</p>
      <p class="meta" data-in><span>Module 1.2 m</span><span class="meta__rule" aria-hidden="true"></span><span>Grid 30°</span><span class="meta__rule" aria-hidden="true"></span><span data-read>Raised 0</span></p>
    </section>
  </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.

25 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Isometric grid 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 the warm paper of a made-up infrastructure studio, behind the headline «Built block by block.», the isometric grid opens from the centre: three thin accent fronts run ahead and the cells they touch lift slightly. Then, wherever the pointer goes, cells become small cubes with three faces in different tones, a soft shadow and a highlight on the top edge; the cell right under the pointer takes the accent. Move the mouse away and the cubes go back down one after another, each on its own spring. Around the headline an ellipse where the cubes barely rise, and below a count of the raised cubes.

How it works

The grid

A 2D canvas as big as the page. The lines at +30 and −30 degrees go through the cell corners and are drawn once onto a hidden canvas, redrawn only when the size changes; under the headline a wash of the paper colour dissolves them.

The entrance wave

The hidden canvas is copied to a work sheet and a radial gradient squashed like the grid, with destination-in, only lets through what the front has reached. Three accent ellipses run ahead and the cells near the front get a small lift.

Cells and springs

Each cell has its own height, velocity and stiffness, randomly between 82% and 118% of STIFFNESS. Every frame the target is the closeness to the pointer through a smooth curve that makes a plateau of full cubes in the middle, times the cell’s own amplitude and lowered inside the headline ellipse; the spring, damped by DAMPING, reaches it with one pixel too many.

The cubes

Cells are sorted back to front. For every raised cell the code draws the offset shadow, the left face, the right face, the top face, thin edges and a white highlight on the two back edges.

The idle loop

After AUTO_PILOT seconds of stillness, a ghost pointer crosses the page in 6.4 seconds, then for 7.6 seconds a row of cubes runs along a diagonal of the grid; then it starts again.

Values to change

NameFileDefaultWhat it changes
CELLscript.js26Height of a grid cell, in pixels.
LIFTscript.js26How high a cube rises at most, in pixels.
RADIUSscript.js130Radius of the pointer area that raises cubes.
STIFFNESSscript.js180Stiffness of each cube’s spring.
DAMPINGscript.js0.74Spring damping: lower bounces more.
GRID_ALPHAscript.js0.13How visible the grid is.
WAVE_TIMEscript.js2.2Seconds of the entrance wave.
AUTO_PILOTscript.js2.5After how many idle seconds the loop starts (0 never).

Try them in the Playground

When to use it

Behind the opening headline of an architecture or engineering studio, a construction company, a cloud infrastructure or logistics app, a modular product; as the background of a page about modules, blocks and projects.

On phones

The same grid with smaller cells, measured on the short side of the page and recalculated on every resize; dragging a finger raises cubes where it passes.

With reduced motion

The grid is already drawn and still, no cube rises and the idle loop is off: only the cell under the pointer takes the accent with a fade, and the words fade in.

Pitfalls

  • The grid lines have to be shifted by half a cell: otherwise they go through the cell centres and not the corners.
  • Cells must be drawn back to front, sorted by their height on the page, or a cube behind covers the one in front.
  • The still grid goes into a hidden canvas: redrawing thousands of lines every frame is wasted work.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

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

Testing

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