Backgrounds
Grain Flicker
Grain Flicker: A grain layer that redraws itself every few frames, so flat backgrounds get the restless flicker of a running projector instead of a fixed texture.
Using Grain Flicker
Grain Flicker uses the wide preview frame with a light/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 |
|---|---|---|---|
opacity | number | 0.06 | From 0.02 to 0.25; step 0.01 |
grainScale | number | 1 | From 1 to 4; step 1 |
refreshInterval | number | 2 | From 1 to 12; step 1 |
animate | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Grain Flicker?
Grain Flicker 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 Grain Flicker depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Grain Flicker?
The React source for Grain Flicker includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Grain Flicker handle reduced motion?
Grain Flicker 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.