Skip to content
animorio
IT
Back to the library

Mint dither background

Backgrounds, WebGL, HoverWebGL, Canvas, GSAPAdvancedCompressed weight: Demo 15 KBGSAP + CustomEase 31 KBFreeDownload the zip

The opening of Meridel Search, a made-up executive search firm, laid out as a premium product grid: the title, a line, the pill button and three cells with figures. The empty cells are windows on one background in hand-written WebGL: fBm noise with its space warped, turned into black and white dots by an 8x8 Bayer matrix, like an old 1-bit screen. The pointer stirs a small fluid simulation and its smoke becomes mint dots that curl and fade in half a second. Minimal premium style.

Rebuilt from scratch studying aspensearch.com by Edoardo Lunardi, Elliott Mangham, Louis Saville: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Mint dither 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 dithered field with mint smoke behind the grid</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>
  <main class="stage" data-stage>
    <!-- the opening of a made-up executive search firm. Under the whole grid a WebGL canvas draws a field of 1-bit dots
         (an 8x8 Bayer dither over warped fbm noise); the empty cells of the grid are windows on it. The pointer stirs a
         small fluid simulation whose smoke is turned into mint dots by the same Bayer matrix -->
    <canvas class="field" data-field aria-hidden="true"></canvas>

    <header class="bar">
      <span class="brand">
        <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M4 20V5.5L12 14l8-8.5V20"/>
        </svg>
        <span class="brand__name">Meridel Search</span>
      </span>
      <nav class="bar__nav" aria-label="Sections">
        <a href="#practice">Practice</a>
        <a href="#placements">Placements</a>
        <a href="#team">Team</a>
      </nav>
      <a class="bar__contact" href="#contact">Contact</a>
    </header>

    <section class="grid" data-grid>
      <div class="cell cell--title" data-panel>
        <p class="eyebrow">Executive search for engineering</p>
        <h1 class="title" data-title aria-label="Meridel">Meridel</h1>
        <div class="lede">
          <p class="lede__line" data-line>We place staff engineers, research leads and CTOs at the companies that set the pace. Quietly, one search at a time.</p>
          <button class="pill" type="button" data-pill>
            <span class="pill__fill" aria-hidden="true"></span>
            <span class="pill__words" data-pill-words>
              <span class="pill__word">Start a conversation</span>
              <span class="pill__word" aria-hidden="true">We reply within a day</span>
            </span>
            <span class="pill__icon" aria-hidden="true">
              <svg viewBox="0 0 16 16"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
            </span>
          </button>
        </div>
      </div>

      <div class="cell cell--window cell--w1" data-window>
        <span class="tick tick--tl"></span><span class="tick tick--tr"></span><span class="tick tick--bl"></span><span class="tick tick--br"></span>
        <span class="tag" data-hint>Move to stir</span>
      </div>

      <div class="cell cell--data cell--dark" data-panel>
        <p class="label">Placements since 2011</p>
        <div class="data">
          <p class="figure" data-figure="418">418</p>
          <svg class="spark" viewBox="0 0 120 28" preserveAspectRatio="none" aria-hidden="true" data-spark>
            <path d="M2 26V17M12 26V20M22 26V14M32 26V18M42 26V11M52 26V15M62 26V9M72 26V13M82 26V7M92 26V10M102 26V5M112 26V3"/>
          </svg>
        </div>
      </div>

      <div class="cell cell--window cell--w2" data-window>
        <span class="tick tick--tl"></span><span class="tick tick--tr"></span><span class="tick tick--bl"></span><span class="tick tick--br"></span>
      </div>

      <div class="cell cell--window cell--w3" data-window>
        <span class="tick tick--tl"></span><span class="tick tick--tr"></span><span class="tick tick--bl"></span><span class="tick tick--br"></span>
      </div>

      <div class="cell cell--data cell--mint" data-panel>
        <p class="label">Median time to offer</p>
        <div class="data">
          <p class="figure"><span data-figure="34">34</span> <span class="figure__unit">days</span></p>
          <span class="meter" aria-hidden="true"><span class="meter__fill" data-meter></span></span>
          <p class="note">Industry median: 71 days</p>
        </div>
      </div>

      <div class="cell cell--window cell--w4" data-window>
        <span class="tick tick--tl"></span><span class="tick tick--tr"></span><span class="tick tick--bl"></span><span class="tick tick--br"></span>
      </div>

      <div class="cell cell--data cell--grey" data-panel>
        <p class="label">Recent offers</p>
        <div class="data">
          <p class="figure figure--range">$<span data-figure="1.2">1.2</span>M<span class="figure__dash">&ndash;</span><span data-figure="4.8">4.8</span>M</p>
          <p class="note">Base and equity, last twelve months</p>
        </div>
      </div>
    </section>

    <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></svg>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/CustomEase.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.

50 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 “Mint dither 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

A white page with the bar on top (the «M» mark of Meridel Search, Practice, Placements, Team and «Contact» on black) and below a grid of four columns and three rows split by one pixel lines. On the left, large, the title cell: «Executive search for engineering» in mono, a huge «Meridel», a line («We place staff engineers, research leads and CTOs…») and the black pill button «Start a conversation» with the mint disc and the arrow. Three cells hold figures: on black «Placements since 2011», 418, with twelve mint ticks growing; on mint «Median time to offer», 34 days, with a bar against the 71 days of the industry; on grey «Recent offers», $1.2M–4.8M. The other four cells are empty: there the background shows, a field of black and white dots on a regular grid where darker and lighter patches drift slowly. On opening the dither develops from the bottom dot by dot, the letters of the title rise from their mask, the cells open from below and the digits roll like an odometer. Moving the pointer leaves a trail of mint smoke made of the same dots, which curls and fades; it also runs under the full cells and shows again in the windows next to them. Over a window its four corner marks spread out. The button, on hover, fills with mint from the left, its words widen and the arrow leaves and comes back; pressed it gives and springs back, puffs a ring of smoke and says «We reply within a day». Left alone, a pointer passes through the windows, stirs the smoke and presses the button.

How it works

One canvas, under the whole grid

The WebGL canvas sits absolute under the bar and the grid; the full cells are lids with a solid colour, the empty ones are transparent. So there is one background, and smoke passing under a cell shows again in the window next to it, as on the site. The lines of the grid are the right and bottom borders of each cell, with the grid pushed one pixel out of the stage.

The noise, baked in two steps

The site’s classic 2D Perlin noise (times 2.3) inside a four octave fBm that adds abs(cnoise): frequency times 3 and amplitude times 0.4 at each octave. A domain warping map, fbm(uv + fbm(uv) x 0.5), is worked out only when the size changes; then every frame fbm(uv - time x 0.006 + warp x 0.1), smoothstep(0.28, 0.72), to the power 1.2, between #888888 and #e0e0e0. The noise is drawn into a texture with one texel per dot, so it costs a quarter of the pixels.

The Bayer dither

The final pass takes the colour at the centre of its dot (pixelSize 2), adds the threshold of the 8x8 Bayer matrix minus 0.25, takes off the 0.18 bias and rounds to two colours: only dark and light dots are left. A threshold rising from the bottom develops the dither on opening, dot by dot.

The smoke: a small fluid simulation

Velocity in a texture 128 long on its long side, smoke in one of 384, in half float. At every move a gaussian splat with a radius of (48 / height)², force 2200 for the movement and up to 0.35 of smoke (less when the pointer moved less than 12 pixels); then curl, vorticity (22), advection of the velocity (dissipation 1.8) and of the smoke (3.2), with no pressure pass, the step held between 0.001 and 0.0166 s.

The smoke turns into dots

In the same shader as the dither the density of the smoke is compared with the same Bayer threshold: where it is higher the dot turns mint. The smooth smoke becomes a stippling with the same pattern as the background.

The pointer that passes by itself

A GSAP timeline takes a drawn pointer through the windows on sine.inOut curves, brushes the button (hover), presses it and leaves; every step goes through the same function as the real mouse. The first real move stops it, and it comes back after 2.5 quiet seconds.

The button, the trail and the figures

The mint fill comes in from the left and leaves to the right (transformOrigin switched on the way out), the words go from wdth 100 to 112, the arrow leaves and comes back with a back.out; pressed it gives to 0.955 and springs back with elastic.out, puffs twelve splats in a ring and the words rise to «We reply within a day». The digits are 0-9 columns rolling with the site’s expo out easing, 1.2 s and 0.06 s apart.

Values to change

NameFileDefaultWhat it changes
WAVE_SPEEDscript.js0.006How fast the noise drifts (the site uses 0.006).
WAVE_FREQUENCYscript.js3How much finer each octave of the noise is (the site uses 3).
WAVE_AMPLITUDEscript.js0.4How much weaker each octave is (the site uses 0.4).
PIXEL_SIZEscript.js2The size of one dot, in CSS pixels (the site uses 2).
BIASscript.js0.18How much darker the dither is pushed (the site uses 0.18).
CURLscript.js22How hard the smoke curls on itself (the site uses 22).
VELOCITY_DISSIPATIONscript.js1.8How quickly the stirred air calms down (the site uses 1.8).
DYE_DISSIPATIONscript.js3.2How quickly the mint smoke fades (the site uses 3.2).
SPLAT_FORCEscript.js2200How hard the pointer pushes the air (the site uses 2200).
SPLAT_DYEscript.js0.35How much smoke each move leaves, at most (the site always uses 0.35; here a slow move leaves less).
SPLAT_RADIUSscript.js48The radius of each puff, in CSS pixels (the site uses 48).
REVEAL_TIMEscript.js1.8Seconds the dither takes to develop from the bottom on opening.
IDLEscript.js2.5Quiet seconds before the pointer comes back by itself.

Try them in the Playground

When to use it

For the opening of a site that wants a lively but sober background behind a title and figures: a studio, a consulting or search firm, a technical product, a landing page with a precise retro tone. It works well behind a grid of full and empty cells, where the background shows only here and there.

On phones

The same animation with adapted sizes: the grid becomes two columns (the title on top, then two windows and two cells with figures), title and figures are measured on the height too, the canvas is recomputed at every resize. The site turns the smoke off on phones; here a moving finger stirs it and the pointer passing by itself shows it anyway.

With reduced motion

The dither is drawn once and stays still (on the site the noise keeps drifting even with reduced motion). No smoke, no pointer on its own: the page fades in with the figures already in place.

Pitfalls

  • With two colours the 0 threshold of the Bayer matrix turns one dot in 64 mint even with no smoke, because step(0, 0) is 1: here the smoke threshold is raised by half a sixty-fourth.
  • The velocity of the fluid is negative and goes above 1: it needs half float textures, which WebGL2 can render to only with EXT_color_buffer_float. Without it, the dither stays without smoke.
  • Splats are queued at every pointermove and all applied at the start of the next step, as on the site, with the step held at 0.0166 s; the queue stops at 64, so a tab that fell behind does not spit out all its smoke at once.
  • The noise is not computed for every pixel of the screen but in a texture with one texel per dot and NEAREST: it is identical and costs a quarter.
  • Without WebGL2 the same dither is computed once in JavaScript (the same Perlin ported line by line) on a 2D canvas with image-rendering: pixelated.

Libraries

GSAP 3.15.0, CustomEase 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 15 KB; the libraries: GSAP + CustomEase 31 KB.

Testing

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