Dot Mark
A logo, word or image drawn as dots that light up under the pointer and ripple when pressed.
pixikit.com/docs/effects/dot-mark
Customize
Shape
Grid
Spacing6.0%
Dot size8px
Dot shape
Color
Glow color
Background
Spotlight
Spotlight radius24%
Spotlight strength100%
Ripple
Ripple speed4ms
Bloom
Bloom size240%
Bloom duration1.4s
Intro wave
Size280px
Interactive
Props
26| Name | Type | Default | Description |
|---|---|---|---|
shape | "logo" | "text" | "svg" | "circle" | "grid" | "single" | "points" | "logo" | What the dots draw: the PixiKit logo, a word, an image, a circle, a plain grid, one dot or your own points. |
text | string | "Pixi" | The word drawn when the shape is text. |
src | string | None | The SVG or image drawn when the shape is svg; its visible pixels become dots. The logo shows until it loads. |
points | [number, number][] | None | Your own dots when the shape is points, each [x, y] from 0 to 100. |
grid | "hex" | "square" | "hex" | How the dots line up: rows offset by half a step, or a square grid. |
spacing | number | 6 | The distance between dots, in % of the stage's height. |
dotSize | number | 8 | Each dot's size in pixels. |
dotShape | "circle" | "square" | "circle" | Round or square dots. |
color | string | "currentColor" | The dots at rest. `currentColor` follows the text colour. |
glowColor | string | "#2563eb" | The colour the spotlight, ripple and bloom light the dots in. |
background | string | "transparent" | The stage behind the dots. |
spotlight | boolean | true | Light the dots near the pointer. |
spotlightRadius | number | 24 | How far the spotlight reaches, in % of the stage's height. |
spotlightStrength | number | 100 | How strongly the spotlight tints and grows the dots under it, in %. |
ripple | boolean | true | A press sends a wave through the dots. |
rippleSpeed | number | 4 | The wave's delay per unit of distance, in ms; lower is faster. |
bloom | boolean | true | A press lets a soft glow bloom from the point pressed. |
bloomSize | number | 240 | How wide the bloom grows, in % of the stage's height. |
bloomDuration | number | 1.4 | How long the bloom lasts, in seconds. |
introWave | boolean | true | One wave plays when the mark first shows. |
size | number | 240 | The stage's height in pixels. A word or an image widens the stage to its own shape. |
interactive | boolean | true | Answer the pointer and the keyboard. Off, the mark is a still image. |
ariaLabel | string | None | What screen readers announce. Defaults to the text, else "Dot mark". |
onDotClick | (dot: DotMarkDot) => void | None | Called on a press with the dot nearest to it. |
className | string | None | |
style | CSSProperties | None |