Backgrounds
Drifting glass shards
Drifting glass shards: A slow current of translucent slivers that flash as they tumble, scattering from the cursor and gathering back when the pointer holds still.
Using Drifting glass shards
Drifting glass shards uses the wide 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 |
|---|---|---|---|
accent | color | #38BDF8 | No additional limit in the metadata. |
shardCount | number | 220 | From 40 to 600; step 20 |
shardSize | number | 1.1 | From 0.5 to 2.5; step 0.1 |
speed | number | 1 | From 0.2 to 3; step 0.1 |
flow | select | stream | Options: stream, vortex, ribbon |
pointerMode | select | repel | Options: repel, attract, none |
Which frameworks are available for Drifting glass shards?
Drifting glass shards 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 glass shards depend on?
The React metadata lists these npm dependencies beyond React: clsx.
What accessibility details are visible in Drifting glass shards?
The React source for Drifting glass shards 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 glass shards handle reduced motion?
Drifting glass shards 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.