If you want a retro feel to an image, it makes sense to add a little bit of noise — a grainy film layer — to it.
Same image with a noise overlay on top
This sort of thing cannot be generated with CSS, but it can be made with SVG. Here’s the SVG used to generate the noise layer above.
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise"> <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch" /> <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0" /> </filter> <rect width="100%" height="100%" filter="url(#noise)" /></svg>The Noise Component
You don’t have to understand how to create this SVG, because what we are essentially looking to do is overlay noise on an image.
So I created a component called Noise, and I exposed a few knobs for you to play with.

Four knobs control how the noise looks:
frequency—baseFrequencyon the turbulence filter. Low (0.01–0.1) gives you large soft blobs like clouds or smoke; high (0.5–1) gives you fine film grain. Defaults to0.9.strength— how visible the grain is. It scales the noise’s alpha, so 0–1 fades the grain in; above 1 it saturates into denser grain. Defaults to0.1.blend— the overlay’smix-blend-mode. Defaults tooverlay.color—rainbow(the default) keeps the coloured static that turbulence naturally produces. Pass a preset (black,sepia,synthwave) or any hex value for a single-colour tint.
Putting it over an image
We can use the stack method we’ve used since the background image lesson to put the noise overlay on top of the image.
<div class="stack"> <Image src="..." /> <Noise ... /></div>Code snippets to copy-paste
---import { Noise } from '@splendidlabz/astro'---
<div style="position: relative"> <Image src="..." /> <Noise ... /></div>Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson