Skip to content
Motionboard
Two image cards, a dusk ridge and a sunlit dune, drawn as coarse halftone dots beside a chat that says halftone applied.
Product reveal · 11s film

Dither Effect

Two image cards sit beside a prompt box. When Turn these images into halftone dots is sent, both images dissolve into coarse dots in four colours, and a second prompt brings back the full-colour pictures. A dithered mark then resolves into the Halo lockup.

Motionboard shot: Dither Reveal

Seen in real launch films

Framer 0:21–0:29YouTube ↗
Framer0:21–0:29YouTube ↗

How to make a Dither Effect with Claude Code or Codex

Copy the recipe above and paste it into Claude Code or Codex. The agent installs the skill and builds the shot.

npx skills add krisyangdev/motionboard
How it's built

Draw each image on a canvas, sample it into an integral image and redraw the cells every frame from the timeline time. A cell is the average colour of an s by s square of the 500x600 source. It switches to dither when the progress passes 0.4 × its Bayer 8x8 value + 0.6 × its sweep position (0.75 × x + 0.25 × y), so the change has grain and runs left to right. In dither state add (Bayer − 0.5) × 120 to every channel and snap to the nearest of 4 palette colours, for example #080c24, #3a4ab8, #f2814f and #ffe9cf. Draw a square up to 5px and a circle from 13px, with the circle size following luminance.

Step the cell size 3, 6, 10, 16px at 2.45, 2.8, 3.1 and 3.4s while the progress runs 0 to 1 over 1.35s with power2.inOut, starting at 2.45s, 0.2s after the prompt is sent at 2.25s. Hold the coarse dots from 3.8s to 4.25s. The second prompt is sent at 5.3s, and from 5.4s to 6.7s the progress falls from 1 to 0 while the cell size falls as 16 × (1 − k)^1.6 down to 2px, so the dots shrink into the image. A live pill, cell 16 px counting down to cell 0 px, tells the viewer what is happening. Keep every card at least 560x672px and every readable line at 26px or more.

Press the copy button to send this recipe to Claude Code or Codex, or install the skill once with npx skills add krisyangdev/motionboard. The agent builds the cards, the chat and the dither engine. Fade the UI out 7.1–7.6s, bring the Halo mark in at 7.3s already dithered at 16px cells, resolve it 7.55–8.25s and enter the word Halo (136px) at 8.0s with the tagline at 8.12s, held to the end. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.

Full recipe

Why it works

An ordered dither is a pattern with no randomness, so the same image always breaks into the same dots and the change can be seeked to any frame. Each cell switches when the progress passes a threshold made of its Bayer value and its position, so the dissolve has a grain and also a direction, left to right, and the eye reads it as a scan. Stepping the cell size from fine to coarse (3, 6, 10, 16px) keeps the image recognisable at first and turns it into a graphic at the end; stepping it back down is what makes the resolve read as the image returning. Colour is cut to 4 per image, so the two cards still look like a dusk and a noon. The change is a response to a typed sentence, the prompt sits next to the images and the reply line shows the current cell size, so the effect looks like something the product did on request. The frame stays locked, the cards are large and the only accent is the orange of the send button, the caret and the final mark, so the dots are the subject.

Spec

Timing
Film 11s. Prompt 1 types from 0.55s (about 1.6s) and is sent at 2.25s; the dissolve runs 2.45–3.8s (card B starts 0.12s after card A); hold 3.8–4.25s; prompt 2 types from 4.25s and is sent at 5.3s; the resolve runs 5.4–6.7s; full colour holds to 7.1s; the UI fades 7.1–7.6s; the mark appears at 7.3s and resolves 7.55–8.25s; the wordmark enters at 8.0s and the tagline at 8.12s, held to the end (2.3s)
Easing
Dissolve and resolve progress power2.inOut; cell size steps are discrete (3, 6, 10, 16px at 2.45, 2.8, 3.1 and 3.4s), then the resolve shrinks the cell as 16 × (1 − k)^1.6, rounded, down to 2px; the mark resolves with power3.inOut; cards and prompt box enter with expo.out (0.8s); the chat scrolls 0.65s power3.inOut; the send button presses with back.out(3); the UI fades with power2.in; wordmark and tagline power3.out (0.55s)
Camera
Locked flat frame with no camera move; the move is in the pixels. The UI scales to 0.985 as it fades at 7.1s (0.5s), and the mark and wordmark sit centred on the empty frame
Subject
Two image cards 560x672px, corner radius 18px, at x80 and x680, y186, each drawn on a canvas from a 500x600 source (a dusk ridge and a sunlit dune, both gradients and paths, no photos) at 2x. A cell is the average colour of a square of the source, read from an integral image. In dither state each cell gets (Bayer 8x8 value − 0.5) × 120 added to every channel and snaps to the nearest of 4 palette colours. A cell turns into dither when progress passes 0.4 × its Bayer value + 0.6 × its sweep position (0.75 × x + 0.25 × y), so the change sweeps left to right with a grain. Cells are squares up to 5px and circles from 13px, and from 3px up their size shrinks with luminance. The chat column is 540px wide at x1280 with a 540x200px prompt box at y700, a 62px send button and bubbles at 32px. The Halo mark is an orange ring (276px across, 48px stroke) with a cream bead, drawn on a 440px canvas with the same dither at 16px cells down to 2px
Sync
The dissolve starts 0.2s after the send press at 2.25s; the readout pill cell N px changes on the same frame as each cell-size step; the reply line changes from Applying halftone to Halftone applied to both at 3.8s, the frame where every cell is dotted; the resolve starts 0.1s after the second send at 5.3s; at 6.7s the pill reads cell 0 px and full colour and the reply reads Full colour restored.; the mark starts to resolve 0.25s after the UI has begun to fade
Style
Near-black #09090b, one accent orange #ff7a45; Inter, headline 76px 700, wordmark 136px 700, tagline 38px; dusk palette #080c24 #3a4ab8 #f2814f #ffe9cf, dune palette #1d1018 #3d7bd9 #ee8c44 #ffeccc, mark palette #09090b #7a2a12 #ff7a45 #ffe6cc; a static 7% film grain and a vignette

Prompt

Build an 11-second, 1920x1080, 30 fps product film called Dither Reveal for a fictional product, Halo (an AI image tool). Use one GSAP timeline and draw all pixels on canvas 2D from the timeline time (no WebGL, no random, no Date). The page is near-black #09090b with one accent orange #ff7a45, Inter for all text, a vignette and a static 7% film grain. The frame is locked: the move is in the pixels. Layout: a 76px headline, Restyle any image with one sentence., at the top left. Two image cards 560x672px with an 18px corner radius at x80 and x680, y186, each with a 30px title and a 26px caption under it (Dusk ridge, Alpine light, 4:5; Sunlit dune, Desert noon, 4:5). Draw each image yourself on a canvas of 1000x1200 (a 500x600 source at 2x): a dusk ridge made of a night-to-orange sky gradient, 70 seeded stars, a sun glow and three mountain layers with a rim light; a sunlit dune made of a blue-to-cream sky, a sun disc and three dune layers with shadow on the faces that turn away from the sun. On the right, a chat column 540px wide at x1280: a thread area above and a 540x200px prompt box at y700 with 32px text, a model chip Halo 2.1, and a 62px orange send button. Bubbles are 32px, replies carry a small orange ring avatar and two 26px pills (cell N px, 4 colours). Dither engine: sample the 500x600 source into an integral image. For a cell size s, each cell is the average colour of an s by s square. A cell is in dither state when progress p is greater than 0.4 × bayer8(ix, iy) + 0.6 × sweep, where sweep = 0.75 × x + 0.25 × y (0 to 1, left to right; use 1 − sweep for the resolve). In dither state add (bayer − 0.5) × 120 to every channel, snap to the nearest of 4 palette colours, clear the cell to the card background and draw a shape: a square up to 5px, a circle from 13px, a circle size that shrinks with luminance from 3px up. Palettes: dusk #080c24 #3a4ab8 #f2814f #ffe9cf, dune #1d1018 #3d7bd9 #ee8c44 #ffeccc. Redraw both cards in an onUpdate from the timeline time. Timeline: 0 to 0.8s headline, cards and prompt box enter with expo.out. Type Turn these images into halftone dots from 0.55s with an orange caret (about 1.6s) and press send at 2.25s: the button dips to 0.86 and returns with back.out(3), the text moves into a bubble and a reply appears reading Applying halftone with the pill cell 3 px. The dissolve runs 2.45–3.8s with power2.inOut progress and discrete cell sizes 3, 6, 10, 16px at 2.45, 2.8, 3.1 and 3.4s; card B starts 0.12s later. At 3.8s the reply changes to Halftone applied to both and the cards hold as coarse dots to 4.25s. Type Back to full colour from 4.25s and send at 5.3s; the thread scrolls up 300px in 0.65s. The resolve runs 5.4–6.7s: progress goes from 1 to 0 and the cell size falls as 16 × (1 − k)^1.6, rounded, down to 2px, the pill counts down and ends at cell 0 px and full colour, and the reply reads Full colour restored. Hold full colour to 7.1s. Ending: fade the whole UI out 7.1–7.6s (scale to 0.985). At 7.3s fade in a 440px canvas that draws the Halo mark (an orange ring (276px across, 48px stroke) with a cream bead in a gap, a soft orange glow) already dithered at 16px cells, and resolve it with the same engine over 7.55–8.25s (power3.inOut, cell size 16 down to 2px). Enter the word Halo (Inter 700, 136px) at 8.0s and the tagline Describe it. Halo makes the image. (38px) at 8.12s, both 0.55s power3.out, and hold the lockup still to 11s. Seed any random value with mulberry32.

People describe it as

  • The images break into coarse halftone dots when the prompt is sent
  • The dots shrink back into the full-colour picture on the second prompt
  • A pixel-art look that sweeps across the picture and then un-sweeps

Often confused with

  • Dot Matrix AnimationDot Matrix Animation quantizes one graphic onto a circular dot display and every frame snaps to that grid; in Dither Effect two full images dissolve into ordered-dither dots at changing cell sizes and resolve back.
  • X-Ray EffectX-Ray Effect cross-dissolves two renders of one device from the same camera position; here one image is rebuilt from cells whose size and colour count change, then returns to the original.
Recipe file (.md)

FAQ

What is a dither effect in a product film?

A dither effect rebuilds an image from a small set of colours by comparing each cell with a fixed threshold pattern, so the image turns into dots or grain. In this film two image cards turn into coarse halftone dots after a prompt, then come back to full colour after a second prompt.

How do you animate a dither without randomness?

Use an ordered dither with a Bayer 8x8 matrix, whose thresholds are fixed, and compute every cell from the timeline time. A cell switches when the progress passes 0.4 × its Bayer value + 0.6 × its sweep position, and the cell size is a function of time. The canvas is redrawn in onUpdate, so any frame can be rendered on its own.

Is it free to use?

Yes. Motionboard is free and MIT licensed, so you can use and modify the recipes and the films they produce in personal and commercial projects. The licence asks only that copies of the recipe files keep the copyright notice.

More Product reveal