Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultCursorDither Trail Cursor
Curved Fill Link ListBrowse all 182Self-Drawing Route
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Dither Trail Cursor

This one is free. Make an account and the code is yours, no card needed.

Create a free account

What you'll need.

Install

  • three

Setup

npm i gsapregisterPlugin(three)

More like this

  • Dither
  • Trail
  • Canvas
  • WebGL

Features.

  • The pointer leaves a soft trail drawn only in chunky ordered-dither dots
  • Wide and solid at the cursor, thinning into scattered specks along the tail
  • The tail never stretches past a set length, however fast you move
  • Fades a moment after the pointer stops, then the loop goes to sleep
  • Dots are judged at their centres on a fixed grid, so they never crawl
  • A sideways finger drag draws it on touch screens; vertical drags still scroll the page, and a tap does nothing
  • One three.js shader pass, no render targets, no images
  • Respects prefers-reduced-motion: no trail at all, just the section

How to get it right.

Load three.js first

The script reads window.THREE. Load three before code.js (the Vault uses the r160 UMD build from jsDelivr). Without it the section shows its heading and no trail.

Add links freely

Links and buttons inside .dth_content work as normal. The script listens on the section, so the trail keeps following the pointer over them.

Pick the dot size for the mood

data-au-dot is the size of one dither cell in CSS pixels. 2 is fine and filmic; 3–4 reads as deliberate pixel art. The canvas runs at one pixel per CSS pixel, so dots stay sharp on any screen.

Shape the tail with radius, tail and lag

data-au-radius sets how wide the head is (a share of the section's height). data-au-tail caps how long the trail can get in head radii. data-au-lag sets how lazily the chain follows: 0.5 feels quick and tight, 0.85 sweeps behind like a ribbon.

Retheme with variables

--dth-trail colours the dots (read once at init, so call refresh() after changing it from script). --dth-bg, --dth-fg and --dth-muted set the page, heading and eyebrow.

Variations.

  • Firefly — the default: 2px dots, radius 0.085, tail 7.5, lag 0.7
  • Pixel brush — data-au-dot="4", data-au-radius="0.12" for big, graphic dots
  • Comet — data-au-tail="12", data-au-lag="0.85" for a long sweeping tail
  • Spark — data-au-radius="0.05", data-au-tail="4", data-au-lag="0.5" for a small, quick mark
  • Chalk — --dth-trail: #fffcf2 for a neutral trail on dark

Where it fits.

  • Hero of a studio or portfolio site — a quiet signature that rewards moving the mouse
  • Launch or event page — the dotted texture suits retro, print or night themes
  • 404 or empty state — something to play with while you find your way back
  • Section break between long reads, with one line of copy

Frequently asked.

Check that three.js loads before the script (the console says [oomph] Dither Trail: three.js not found after 10 seconds without it), that the browser has WebGL, and that reduced motion isn't switched on.

No. Vertical drags scroll the page and pinches zoom it; only sideways drags draw. Without three.js, WebGL or motion, touch is left completely alone.

Yes. Anything inside .dth_content sits over the canvas; the script only adds the canvas as the root's first child. The canvas follows the root's size, so a shorter section works too.

Set --dth-trail on the root and call window.au.DitherTrail.refresh(el).

No. It runs its own animation loop; only three.js is needed.

Add <p class="dth_eyebrow"> before the title in .dth_content, or pass eyebrow in React. The styles are still in code.css.

Related components.

Free

Dither Reveal Cursor

Cursor

Pro

Cursor Push Tags

Cursor

Pro

Mesh Gradient Hero

Cursor