Variants
Dot Portrait — a framed portrait drawn in thousands of white dots on black, assembling from a scatter, parting around the cursor and morphing into the next face

API Reference

Props for <DotPortrait />

S

Motion score

Compositor-only

Category
Interactive Elements
Framework
React
Published
Dec 4, 2026
Dependencies
Variants

Dot Portrait: a stipple effect for React

A framed portrait made of thousands of tiny dots that reads like a photo. The dots gather from a scatter when it scrolls into view, fly on staggered arcs to form the next face, and move aside around the cursor.

Use Dot Portrait to bring a stipple effect to a team page, an about section or a speaker lineup, where each face takes its turn in the same frame. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Dot Portrait?

Dot Portrait is a stipple effect for React that redraws each photo as dots, packed close where the face has detail and spread out in the flat areas. It looks like a stipple portrait drawn by hand, except the dots move. Every dot is shaded in one of eight steps of opacity, and a figure number and counter sit in the corners of the frame.

How Dot Portrait works

When the frame first comes into view, the dots gather from a scatter. With cycle on, it moves to the next portrait every cycleInterval seconds (4). Turn it off and it stays on the face set by active. Each change sends the dots to the new face over morphDuration (1500 ms), and stagger (0.4) sets whether they leave all at once or in a slow wave. The dot animation needs no animation library; its only dependency is the cn helper.

Dots within cursorRadius (110) of the cursor move away by up to cursorPush (16); set the radius to 0 to turn the push off. dotCount (8,000) sets how many dots make a face, from 2,000 to 16,000. More dots look more like a photo but take more work to draw. evenness, contrast, tone and minShade shape where the dots go and how they're shaded, much like the screen and curves of a halftone effect. With lightDots on, dots gather where the photo is light, for a dark frame; turn it off for a light one.

Customization options

In the Customize panel, change the portraits (1 to 12) and the label screen readers announce for each one, the four colors, the caption, the font, the dot count and size, the face height and the timing, then save a look as a variant and install. The six sample faces install under public/motionuikit/images. The label font isn't bundled, so load IBM Plex Mono, or your own, in your app.

Use cases

  • Team and about pages, with Default: pale dots on near-black, cycling through the team one face at a time.
  • Light editorial layouts, with Paper: ink dots on off-white that gather in the dark parts of each photo.
  • Founder or speaker spotlights, with Slow Wave: fine pale-blue dots on deep navy that hold on one face, then drift to the next in a long, slow wave.
  • Portfolio heroes, with Ember: fewer, larger amber dots on warm black that scatter wide around the cursor.

FAQs