Spiral Drift
image-galleryProBilleder, der strømmer langs en indadgående spiral med lige afstand, drejer med tangenten, skrumper mod midten og toner ud i begge ender. Hastighed, omgange og spredning kan vendes, og hover sætter på pause.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Spiral Drift 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/spiral-driftclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
SpiralDriftProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
items påkrævet | SpiralDriftItem[] | – | Pictures that ride the spiral. They are repeated in order to fill every slot of the spiral. |
turns | number | 2.4 | How many times the spiral winds around the centre between the edge and the middle. |
spread | number | 1 | How far out the spiral starts, as a share of the container's half-diagonal. 1 starts at the corners, lower pulls it in, higher lets cards enter from beyond the edges. |
speed | number | 0.7 | Travel speed in cards per second past a fixed point on the path. 0 stops it, negative values reverse the flow (cards climb out of the centre). |
size | number | 175 | Edge length of a card at the outer end of the spiral, in CSS pixels. Cards shrink toward the centre and the size also scales down a little on small containers. |
radius | number | 18 | Corner radius of the cards in CSS pixels. |
count | number | 44 | How many cards share the spiral. Fewer are used on small containers. |
pauseOnHover | boolean | true | Slow the flow to a stop while the pointer rests on it (and while a finger is down), and ease back after. Also pauses while focus is inside. |
direction | 'clockwise' | 'counterclockwise' | 'clockwise' | Spiral direction on screen. |
pauseButton | boolean | true | Show a Pause and Play button, so the flow can be stopped by keyboard, touch or mouse. Hidden under reduced motion and when speed is 0. |
labels | { pause: string; play: string } | { pause: 'Pause', play: 'Play' } | Text on the Pause and Play button, for other languages. |
aria-label | string | – | Accessible name for the picture stream. Leave empty when it is only decoration. The images' alt texts are read as a list inside it. |
children | ReactNode | – | Content drawn above the spiral. It does not receive pointer events by default; enable pointer-events-auto on anything clickable. |
className | string | – | – |
A11y
Tastatur
A visible Pause or Play button in the bottom right corner stops and restarts the drift. Focus on the button does not pause the flow by itself. labels sets its text, and pauseButton false removes it.
Skærmlæser
The root is a group named by aria-label. The canvas is aria-hidden and a hidden list gives each non-empty alt once.
Mindre bevægelse
Under reduced motion the button is not shown and nothing moves. Otherwise pauseOnHover stops the flow while the pointer is over it. The loop pauses while off screen.