ZeroGravity UI

Mediaexperimental

Quartz

Film grain overlay

Film grain over anything, from one tile painted once and repeated by CSS.

Grain

One tile, painted once and repeated by CSS.

Customize

Grainone tile, painted once and repeated by CSS
0.35intensity
128 pxscale
1.00speed
0.00colour
blend
1seed

Usage

TSX
<Quartz>
    <Hero />
</Quartz>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

7 documented props on Quartz
PropertyTypeDefaultDescription
intensitynumber0.35Intensity. Range 0 to 1.
scalenumber128Tile. Range 32 to 256 px.
speednumber1Speed. Range 0.2 to 3.
colournumber0Colour. Range 0 to 1.
blend"soft-light" | "overlay" | "screen" | "multiply""soft-light"Blend.
seednumber1Seed. Range 1 to 40.
childrenReactNode—Whatever the grain sits over.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.