Zoom Field
image-galleryProEt endeløst felt af fotos, som kan trækkes og zoomes, med inerti, zoom forankret i markøren, dybdedrift og tæthed, der tilpasser sig zoomen.
Åbner snart
Pro kan ikke købes endnu. Siden åbner, når betalingen er klar.
Preview
Forhåndsvisningen kunne ikke hentes.
Live demo. Temaet skifter selve demoen.
Kode
zoom-field.tsxPro
Koden er låst
Zoom Field er en del af Manniche UI Pro. En nøgle åbner kildekoden til alle 60 effekter.
Åbner snart49 € · Introduktionspris til og med 31. december 2026. Derefter 79 €.
- Engangsbetaling
- Én udvikler
- Nøglen kommer på mail 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
CLI
npx shadcn@latest add @manniche-pro/zoom-fieldMCP
claude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
ZoomFieldProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
items påkrævet | ZoomFieldItem[] | – | Pictures that fill the endless field. They repeat in a scattered order, so even a handful reads as a big collection. |
cellSize | number | 230 | Edge length in CSS pixels of one grid cell at zoom 1. Pictures take roughly a third to two thirds of it. Shrinks a little on narrow containers. |
density | number | 0.8 | How full the field is, from 0.2 (sparse) to 1 (every cell holds a picture). |
radius | number | 10 | Corner radius of every picture, in CSS pixels on screen (it does not grow with zoom). |
dragSpeed | number | 1 | Multiplier for how far the field travels per pixel of dragging. |
friction | number | 3.2 | How quickly a released field slows down, as a decay rate per second. Low values glide, high values stop quickly. |
parallax | number | 1 | Strength of the depth drift, from 0 (flat) to 2. Near layers slide a little further than far ones while the field moves. |
minZoom | number | 0.15 | Closest-out zoom. The field is endless in every direction and in depth, so this is only a comfort limit. |
maxZoom | number | 8 | Furthest-in zoom. |
initialZoom | number | 1 | Zoom the field starts at, and the one the reset button returns to. |
controls | boolean | true | Show the zoom buttons and the hint, which also give pointer-less and touch users a way to zoom. |
seed | number | 7 | Number used to scatter the pictures. The same seed always lays the field out the same way. |
touchDrag | boolean | true | Touch behaviour. By default the surface sets touch-action: none so a finger can drag and pinch the field, which also means a finger on it will not scroll the page. Pass false to keep vertical page scroll (a touch then cannot drag; mouse, pen and the zoom buttons still work). |
aria-label | string | 'Endless image field. Drag to move, scroll or use plus and minus to zoom.' | Accessible name of the whole field. |
className | string | – | – |
A11y
Ingen a11y-noter skrevet endnu.
Noterne kommer sammen med kildekoden, når Pro åbner.