Backgrounds
Drifting particle field
Drifting particle field: A slowly tumbling cloud of small round points, each drifting on its own path, with the whole cloud leaning away from the pointer.
Using Drifting particle field
Drifting particle field uses the full page preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
color | color | #9BE15D | No additional limit in the metadata. |
count | number | 200 | From 40 to 600; step 20 |
spread | number | 10 | From 4 to 20; step 1 |
speed | number | 0.1 | From 0.02 to 0.5; step 0.02 |
baseSize | number | 100 | From 30 to 240; step 10 |
parallax | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Drifting particle field?
Drifting particle field is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Drifting particle field depend on?
The React metadata lists these npm dependencies beyond React: clsx.
What accessibility details are visible in Drifting particle field?
The React source for Drifting particle field includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Drifting particle field handle reduced motion?
Drifting particle field reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.