Galaxy Marble
webglProEn proceduralt skabt galakse lukket inde i en lysbrydende glaskugle, med fem udseender og en egen palet.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Galaxy Marble 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/galaxy-marbleclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
GalaxyMarbleProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
look | MarbleLook | 'auto' | What is inside the glass. spiral is a tilted disc with arms, nebula is big drifting clouds, core is one blazing bulge, deep-field is mostly stars. auto slowly melts from one to the next. |
anchor | string | '#120a2e' | The deep base colour of space inside the glass. Any CSS colour, var() and currentColor included. Keep it dark. |
accents | [string, string, string] | DEFAULT_ACCENTS | Three accent colours for arms, clouds and tinted stars. Any CSS colour. |
speed | number | 1 | Speed of the drifting nebulae and the twinkle. 1 is calm, 0 freezes the clouds. |
spin | number | 1 | Spin of the galaxy inside the glass. 1 is one turn in about a minute, negative turns the other way, 0 holds still. |
children | ReactNode | – | Drawn on top, centred in the marble. |
label | string | – | Accessible name. When set, the marble is exposed as an image; leave it out for pure decoration. |
className | string | – | Sizes the marble: it is a circle that fits the box, so give the box a width (and optionally a height). |
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 and the loop does not run. Otherwise the loop runs only while on screen and the tab is visible.
Andet
Without WebGL2, or after two lost contexts, a CSS orb shows instead. The WebGL context is released on unmount.