Pixel Sweep
imageProEt foto, der kommer frem kvadrat for kvadrat bag en takket, fejende front, fra en ensfarvet flade eller et mosaikbillede af sig selv.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Pixel Sweep er en del af Manniche UI Pro. En nøgle åbner kildekoden til alle 66 effekter.
Køb · 49 €49 € · Introduktionspris til og med 31. december 2026. Derefter 79 €.
- Engangsbetaling
- Én udvikler
- Log ind og opret din nøgle med det samme
- Ingen moms (§ 19 UStG)
Har du en nøgle? Hent koden med CLI eller MCP.
Nøglen ligger i MANNICHE_PRO_KEY, aldrig i koden eller i adressen. Sådan sætter du den op
npx shadcn@latest add @manniche-pro/pixel-sweepclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
PixelSweepProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
src påkrævet | string | – | The photo. A new src is loaded in the background; the old photo stays until the new one is ready, then the new one sweeps in. |
alt påkrævet | string | – | Describes the photo for screen readers. |
direction | PixelSweepDirection | 'right' | The way the reveal travels. right starts at the left edge and sweeps to the right. |
cellSize | number | 22 | Size of one square in CSS pixels. |
cover | string | '#0e0e10' | What the photo hides under: a hex colour, or mosaic for the photo itself in blocks of one colour (needs CORS on cross-origin photos, otherwise it falls back to a dark grey). |
edgeNoise | number | 0.55 | 0 is a straight front; 1 is a ragged, scattered one with tongues running ahead. |
duration | number | 1500 | Length of the sweep in milliseconds. |
easing | PixelSweepEasing | 'in-out' | Pace of the sweep. |
delay | number | 0 | Wait in milliseconds before the sweep starts. |
play | boolean | – | Leave it out to reveal once, when a third of the box has scrolled into view. true reveals, false covers the photo again, each with the same sweep. |
seed | number | 7 | Changes the scatter pattern, so several on a page do not dissolve alike. |
onRevealComplete | () => void | – | Called once the photo is fully revealed. |
fit | 'cover' | 'contain' | 'cover' | cover crops the photo to fill the box, contain shows all of it. |
focusX | number | 0.5 | Horizontal focus point from 0 (left) to 1 (right), used when cover crops the photo. |
focusY | number | 0.5 | Vertical focus point from 0 (top) to 1 (bottom), used when cover crops the photo. |
children | ReactNode | – | Content shown on top of the photo. |
className | string | – | – |
A11y
Skærmlæser
The alt text sits on a real image behind the aria-hidden canvas, so the picture is read once, whether or not the cover has finished.
Mindre bevægelse
Under reduced motion the reveal jumps straight to its end state. Otherwise the reveal starts when about 30% of the effect is in view, or when play turns true. play false keeps the cover on purpose.