0Views
0Copies

API Reference
Props for <DotPortrait />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#0a0a0a" | The frame's fill. |
| dotColor | string | "#f4f4f4" | The dots' color, shaded in eight steps of opacity. |
| borderColor | string | "#262626" | The frame's 1px border. |
| labelColor | string | "#8c8c8c" | The figure number and counter in the corners. |
| Prop | Type | Default | Description |
|---|---|---|---|
| portraits | Array<{ src, label }> | [{"src":"/motionuikit/images/dot-portrait-team-ezra.webp","label":"Ezra Vahl, Founder"},{"src":"/motionuikit/images/dot-portrait-team-mira.webp","label":"Mira Lund, Design"},{"src":"/motionuikit/images/dot-portrait-team-theo.webp","label":"Theo Marchetti, Motion"},{"src":"/motionuikit/images/dot-portrait-team-kai.webp","label":"Kai Moreno, Technology"},{"src":"/motionuikit/images/dot-portrait-team-sam.webp","label":"Sam Okoro, Strategy"},{"src":"/motionuikit/images/dot-portrait-team-nadia.webp","label":"Nadia Farouk, Production"}] | The faces the dots draw, in order. |
| cycle | boolean | true | Moves through the portraits on its own; off, it stays on the one picked in Portrait. |
| active | number | 0 | Which portrait is shown, counted from 0; changing it sends the dots flying to the new face. |
| showLabels | boolean | true | Shows the figure number top left and the counter top right. |
| caption | string | "Fig." | The word before the figure number; empty shows the number alone. |
| font | FontValue | {"fontFamily":"IBM Plex Mono","fontWeight":400,"fontSize":11} | The labels' type; the component doesn't load the font, so add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| cycleInterval | number | 4 | Seconds between automatic moves to the next portrait while Cycle is on. |
| dotCount | number | 8000 | How many dots make a face; more is more photographic and heavier to draw. |
| dotSize | number | 0.95 | Radius of a mid-tone dot in a 440px-wide frame; it scales with the frame. |
| faceHeight | number | 94 | How tall the face stands in the frame. |
| morphDuration | number | 1500 | How long the dots take to fly from one face to the next. |
| stagger | number | 0.4 | How staggered the dots set off: 0 all at once, 0.8 a slow wave. |
| cursorRadius | number | 110 | How far around the cursor dots move away; 0 turns the push off. |
| cursorPush | number | 16 | How far the dots nearest the cursor move. |
| Prop | Type | Default | Description |
|---|---|---|---|
| lightDots | boolean | true | On, dots gather where the photo is light, for a dark frame; off, where it is dark, for a light frame. |
| Prop | Type | Default | Description |
|---|---|---|---|
| evenness | number | 0.5 | How evenly dots cover the face: 0 only the features, 1 a flat even screen. |
| contrast | number | 1.4 | How strongly the features pull in extra dots. |
| tone | number | 1.1 | Tone curve of the dot shades: below 1 lifts the shadows, above 1 deepens them. |
| minShade | number | 0.3 | Faintest a dot gets, so dark hair still reads as texture. |
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#
It's a way of drawing an image with many small dots, packed close in the dark or detailed areas and spread out in the light ones. Dot Portrait builds it from your photo and moves the dots from face to face.
A cut-out on a transparent background, as a PNG or WebP. If the photo has a solid background, that gets drawn in dots too, and the face loses its outline.
No. Dot Portrait is a Pro component, included in every paid plan. Anything you install stays yours after your plan ends.
It's a React component for Next.js, Vite and Astro with Tailwind CSS v4. In a JavaScript project, the CLI converts
it to a .jsx file.