Drop Gallery
imageProBilder, die in eine Physikwelt fallen gelassen werden und sich aufheben und werfen lassen, per Maus, Touch oder Tastatur.
Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
Vorschau
Live-Demo. Das Theme schaltet die Demo selbst um.
Code
Der Code ist gesperrt
Drop Gallery gehört zu Manniche UI Pro. Ein Schlüssel öffnet den Quellcode aller 66 Effekte.
Kaufen · 49 €49 € · Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
- Einmalzahlung
- Ein Entwickler
- Melde dich an und erstelle deinen Schlüssel sofort
- Keine Umsatzsteuer (§ 19 UStG)
Hast du einen Schlüssel? Hol den Code mit der CLI oder per MCP.
Der Schlüssel liegt in MANNICHE_PRO_KEY, nie im Code oder in der Adresse. So richtest du ihn ein
npx shadcn@latest add @manniche-pro/drop-galleryclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
DropGalleryProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
images | DropGalleryImage[] | – | Pictures that fill the bodies, cycled across count. Without any, bodies are solid colours from colors. |
colors | string[] | – | Solid fill colours, used when there are no images or while an image is still loading. Any CSS colour, including var(--x). |
shape | 'circle' | 'square' | 'circle' | Shape of the bodies. |
count | number | 24 | How many bodies to drop. Fewer are used when the container is too small to hold them. |
size | number | 96 | Diameter (or side) of a body in CSS pixels. It shrinks a little on narrow containers. |
gravityX | number | 0 | Pull along the horizontal axis, from -1 (left) to 1 (right). |
gravityY | number | 1 | Pull along the vertical axis, from -1 (up) to 1 (down). |
gravityStrength | number | 1 | Overall strength of gravity, from 0 (weightless) to 3. |
walls | DropGalleryWalls | – | Which edges of the container are solid. Each side can be switched on or off on its own. Bodies that leave through an open side are gone until the next replay. |
friction | number | 0.3 | Surface friction, from 0 (ice) to 1 (rubber). Higher values make the pile settle faster. |
dragStiffness | number | 0.2 | How firmly a grabbed body follows the pointer, from 0.02 (rubber band) to 1 (rigid). |
angularStiffness | number | 0.25 | How firmly a grabbed body resists twisting while dragged, from 0 (spins freely) to 1. |
controls | boolean | true | Show the Shake and Drop again buttons. Without them the gallery itself takes a tab stop: Enter or Space shakes, the arrow keys push every body that way, R drops a fresh set, and each action is announced. |
children | ReactNode | – | Content drawn above the bodies. It ignores the pointer so bodies underneath stay draggable; switch pointer-events-auto back on for anything clickable. |
aria-label | string | – | Accessible name of the whole gallery. |
touchDrag | boolean | true | Touch behaviour. By default a finger that lands on a body picks it up and tosses it, while a finger that lands anywhere else scrolls the page as usual (the surface leaves touch-action alone and only claims the gesture when it starts on a body). Pass false to make touch never drag (mouse and pen still can). |
ref | Ref<DropGalleryHandle> | – | Ref with replay() and shake(). |
className | string | – | – |
A11y
Tastatur
With controls on, Shake and Drop again are buttons of at least 44 pixels, reachable with Tab and pressed with Enter or Space. With controls false the gallery itself takes focus: Enter or Space shakes, arrow keys push the pictures, R drops a fresh set, and each action is announced.
Screenreader
The gallery is a group named by aria-label. The canvas is aria-hidden and a hidden list gives each non-empty alt once.
Reduzierte Bewegung
Under reduced motion the pictures appear already settled and the loop runs only while dragging. The loop pauses while off screen or when the tab is hidden.