Star Tunnel
backgroundProEt stjernefelt i lysfart med striber, glimt og turbulens, der fylder sin beholder.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Star Tunnel 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/star-tunnelclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
StarTunnelProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
count | number | 800 | How many stars fly past. Capped at 2000 and scaled down on small containers. |
colors | string[] | – | Star colours, up to 6, handed out at random (three is the sweet spot). Any CSS colour, including var(--x), currentColor and color-mix(). The default is white, ice blue and warm gold mixed with the inherited text colour, so it reads on both light and dark pages. |
direction | 'outward' | 'inward' | 'outward' | outward flies forward, so stars rush out of the centre towards you. inward flies backwards, so they are drawn into the centre. |
speed | number | 1 | Flight speed. 1 is a calm cruise, 3 is a jump to lightspeed, 0 freezes the field. Streaks grow with speed. |
glitter | number | 0.35 | How often stars flash into a glittering four-point sparkle, from 0 (never) to 1 (constantly). |
trail | number | 0.5 | Length of the motion streaks from 0 (round dots) to 1 (long light trails). |
turbulence | number | 0.25 | A swaying wobble that grows as stars come close to the viewer, from 0 (dead straight) to 1 (heavy). |
focal | number | 1 | Perspective strength, from 0.3 (a narrow, deep tunnel) to 2 (a wide, fast opening). |
starSize | number | 1 | Multiplier for the size of the stars. |
density | number | 1 | How widely stars are spread around the centre. Below 1 they huddle into a column, above 1 they fill the corners. |
x | number | 0.5 | Horizontal position of the vanishing point inside the container, 0 (left) to 1 (right). |
y | number | 0.5 | Vertical position of the vanishing point inside the container, 0 (top) to 1 (bottom). |
blend | 'auto' | 'additive' | 'normal' | 'auto' | additive makes overlapping stars add up to a glow and suits dark backgrounds. normal paints plain coloured stars and suits light ones. auto picks by the brightness of the inherited text colour. |
aria-label | string | – | Accessible name. When set, the canvas becomes an image for assistive technology; without it the effect is decorative and hidden. |
children | ReactNode | – | Content drawn on top of the starfield. |
className | string | – | Classes for the wrapper. Give it a size; it is relative and clips its canvas. |
A11y
Skærmlæser
Decorative by default: the canvas is aria-hidden. An aria-label prop gives it role="img" and that name. Children sit above the canvas and stay reachable by screen readers and keyboard.
Mindre bevægelse
Under reduced motion one still frame of the tunnel is drawn and nothing moves. Otherwise the canvas animates only while it is on screen and the tab is visible.