Halftone Tide
backgroundProEt drivende farvefelt af støj, tegnet som et halvtonegitter af prikker med op til ti farvestop.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Halftone Tide 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/halftone-tideclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
HalftoneTideProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
palette | string[] | DEFAULT_PALETTE | Colour stops of the ramp the dots are coloured from, two to ten of them, dark to light or however you like. Any CSS colour, var() and currentColor included. Extra stops past ten are ignored. |
background | string | '#07050d' | Colour between the dots. Use transparent to let the page show through. Any CSS colour. |
frequency | number | 1.4 | How busy the field is: more islands of big and small dots per screen. 1 is calm, 3 is dense. |
speed | number | 1 | Drift speed of the field. 1 is slow, 0 freezes it, negative runs it backwards. |
contrast | number | 1 | How hard dots swell and shrink. Below 1 is soft and even, above 1 leaves more empty space and fat dots. |
cellSize | number | 14 | Distance between dot centres in CSS pixels, 4 to 40. |
paletteShift | number | 0 | Slides the colour ramp along the field, 0 to 1 is one full cycle. |
interactive | boolean | true | Dots near the pointer swell. A finger works too, while it is down. The box uses touch-action: pan-y, so vertical swipes still scroll the page; touch is never captured. |
children | ReactNode | – | Drawn on top, centred. |
label | string | – | Accessible name. When set, the field is exposed as an image; leave it out for pure decoration. |
className | string | – | Sizes the box. The canvas fills it. |
A11y
Skærmlæser
Decorative by default: the canvas is aria-hidden. A label prop gives it role="img" and that name. Children render outside the canvas, so they stay reachable by screen readers and keyboard.
Mindre bevægelse
Under reduced motion one still frame is drawn, the loop is off and the pointer has no effect. Otherwise the loop runs only while the layer is on screen and the tab is visible.
Andet
Without WebGL2, or after repeated context loss, a CSS gradient shows instead. The WebGL context is released on unmount. The layer uses touch-pan-y, so vertical scrolling still works by touch.