Spark Sphere
interactiveProEine interaktive Kugel aus Tausenden Partikeln, die sich mit dem Mauszeiger oder den Pfeiltasten drehen, anstoßen und verstreuen lässt.
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
Spark Sphere 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/spark-sphereclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
SparkSphereProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
count | number | 5500 | How many particles make up the sphere. Evenly spread (Fibonacci lattice). Capped at 12000 and scaled down on small containers. |
color | string | 'currentColor' | Particle colour. Any CSS colour, including var(--x); defaults to the inherited text colour, so it follows light and dark mode. |
opacity | number | 0.95 | Overall opacity of the particles, from 0 to 1. |
particleSize | number | 1 | Multiplier for the size of each particle. |
blend | 'auto' | 'additive' | 'normal' | 'auto' | additive makes overlapping particles add up to a glow and suits dark backgrounds. normal paints plain dots and suits light ones. auto picks by the brightness of the inherited text colour. |
scale | number | 0.82 | Diameter of the sphere as a fraction of the container's shorter side. |
x | number | 0.5 | Horizontal position of the sphere's centre inside the container, 0 (left) to 1 (right). |
y | number | 0.5 | Vertical position of the sphere's centre inside the container, 0 (top) to 1 (bottom). |
direction | 'cw' | 'ccw' | 'cw' | Direction of the automatic spin, seen from above: cw moves the near side to the left, ccw to the right. |
speed | number | 1 | Speed of the automatic spin. 1 is one turn in about 18 seconds, 0 stops it. |
pauseOnHover | boolean | false | Ease the automatic spin to a stop while the mouse is over the sphere. |
tilt | number | 16 | Starting tilt in degrees, so the poles are not pointing straight sideways. |
draggable | boolean | true | Let the visitor spin the sphere by dragging (with throw momentum) or with the arrow keys when it has focus. |
touchDrag | 'horizontal' | 'free' | 'horizontal' | Which touch gestures spin the sphere. horizontal leaves vertical swipes to page scroll (touch-action: pan-y), so the sphere never traps a scrolling finger. free takes over every touch gesture on the sphere (touch-action: none) so it can also be turned up and down; the page cannot scroll from a finger on it. |
repelRadius | number | 0.3 | Radius of the zone around the pointer that pushes particles away, as a fraction of the sphere radius. 0 turns it off. |
repelStrength | number | 1 | How far pushed particles travel. 1 is a clear dent around the pointer. |
burstForce | number | 1 | How violently a click or tap scatters the particles near it. 0 turns bursts off. |
aria-label | string | – | Accessible name for the sphere, which is focusable when draggable is on. |
children | ReactNode | – | Content drawn on top of the sphere. Give it pointer-events-none if it should not catch clicks. |
className | string | – | Classes for the wrapper. Give it a size; it is relative and clips its canvas. |
A11y
Tastatur
With draggable (the default) the sphere is a focusable group with a visible focus ring. The arrow keys spin it. Enter and Space scatter the particles from the centre. Keys typed in controls inside it, and Alt, Ctrl or Cmd shortcuts, are left alone.
Screenreader
With draggable the host is a group described as a draggable sphere, with a name that mentions the arrow keys, or your aria-label. Without it the layer is role="img" with a plain name. Children stay reachable.
Reduzierte Bewegung
Under reduced motion the sphere does not spin by itself. Drag, keys and bursts still work, and a turn from them settles to a stop within a few seconds. Otherwise it renders only while on screen and the tab is visible.
Sonstiges
Touch keeps vertical scroll (pan-y) unless touchDrag is "free". Without WebGL a 2D canvas fallback draws the particles, and the renderer is disposed on unmount.