Skip to content
Menu

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.

ControlTypeDefaultPreview limits
accentcolor#38BDF8No additional limit in the metadata.
shardCountnumber220From 40 to 600; step 20
shardSizenumber1.1From 0.5 to 2.5; step 0.1
speednumber1From 0.2 to 3; step 0.1
flowselectstreamOptions: stream, vortex, ribbon
pointerModeselectrepelOptions: 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.

Connect your agent

Related open components