CSS Noise Overlay Generator
Copy-paste CSS that adds film grain over any section. No image files needed.
How it works
Gives copy-paste CSS that lays film grain over any section, using an inline SVG so no image file is needed. Pick opacity and a blend mode.
- Set grain and blend.
- Copy the CSS.
- Add the grain class.
Worked example
Add class="grain" to a section. The ::after layer covers it and ignores the mouse, so buttons still work.
Good to know
- Overlay and soft-light blends look natural on colour backgrounds.
- Opacity 0.05 to 0.2 is subtle.
- The parent needs position: relative, which the class includes.
- Put important text above with a higher z-index if needed.
Common questions
- What does frequency do?
- Higher gives finer grain. Lower gives bigger blotches.
- Why does it look different in another browser?
- The texture is drawn by the browser filter, so tiny differences are normal.
- Will it repeat with seams?
- The tile is made to repeat without visible seams.
- Does it slow the page?
- A small tile is cheap. A huge tile or many layers can slow old phones.