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 Reveal Cursor
Depth Fly-Through HeroBrowse all 182Pill Reveal Footer
  • 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 Reveal 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

  • gsap
  • three

Setup

npm i gsapregisterPlugin(three)

More like this

  • Hero
  • Reveal
  • Dither
  • Canvas
  • WebGL

Features.

  • A full-screen photo printed as two colours of tiny square dots, like an ordered-dither print
  • A lens follows the mouse and fills the dots under it with the photo's real colours
  • The lens edge sloshes and breaks into dots, with blinking specks inside it
  • A faint shimmer twinkles through the dark areas
  • Crisp at any size: the dots are drawn at pixel ratio 1 on a grid
  • Runs only while on screen and the tab is visible
  • Shows the plain photo until the shader has it, and without WebGL
  • Respects prefers-reduced-motion: one still dithered frame, no lens

How to get it right.

Load GSAP and three.js first

The script reads window.gsap and window.THREE. Load both before code.js. Without them the photo shows as is.

Pick a photo with clear lights and darks

Dot density follows brightness, so a subject that stands out from a darker background prints best. Flat, mid-grey photos turn into an even field of dots.

Keep the subject near the top

The photo is cover-fitted and anchored to its top edge, so tall screens crop the bottom. The plain <img> uses the same crop.

Choose your two colours

--dln-dot colours the dots and --dln-bg the space between them (and the scrim behind any copy). Both are read once at init. Dark background with a bright dot reads best.

Copy is optional

It ships as the photo alone. To add copy, put <div class="dln_scrim" aria-hidden="true"></div> and a .dln_content holding .dln_eyebrow, .dln_title and .dln_button after the image (React: eyebrow, title, buttonLabel).

Size the dots and the lens

data-au-cell sets the dot cell in CSS pixels: 2–3 for fine print, 6–8 for a chunky poster. data-au-radius sets the lens size as a share of the hero's height.

Variations.

  • Print — the default: 3px orange dots on near-black
  • Poster — data-au-cell="7" and data-au-radius="0.2" for big dots and a big lens
  • Peach — --dln-dot: #f68e66 for a softer print
  • Newsprint — --dln-bg: #fffcf2; --dln-dot: #252422; --dln-fg: #252422
  • Calm — data-au-shimmer="0" to stop the twinkle

Where it fits.

  • Editorial heroes — a feature opener that rewards a look around
  • Photography and art sites — show the work and a reveal of its colour
  • Product launches — a dithered teaser with the real colours under the cursor
  • Music and event pages — a print-like, lo-fi first screen

Frequently asked.

The lens only runs on devices with a mouse or trackpad. Touch screens show the dithered print with its shimmer.

That's the fallback: three.js isn't loaded, WebGL isn't available, or the photo failed to load.

Not as is. The shader reads one still image from the <img>.

The tone is linearised before dithering, so midtones get fewer dots than a straight brightness map would give. Brighten the photo itself if you want more dots.

Related components.

Pro

Cursor Push Tags

Cursor

Pro

Mesh Gradient Hero

Cursor

Free

Dither Trail Cursor

Cursor