James Garrick
Software Developer
Animated pixel background tutorial in React.
Mon, 26 May 2025 00:00:00 GMT
James Garrick
#react
#css
Just recently, I have been able to finally get around to my portfolio projects, which had long been in the works. One of the main things that kept me from building it out is that I wanted some unique effect in the website.
After some brainingstorming, I decided to come up with an animated, pixelated background effect. It is in use on my website. So, how did I make this effect?

Breaking it down

This effect is composed of three distinct layers that are rendered stacked on top of one another:
1: The noise
2: The pixelation layer
3: The grid

Adding Noise

Any noise pattern can be used to generate the noise, but I found that simplex noise works the best, because of its ability to be generated in 3 dimesnions: x, y, and time.
To start, we can define the initial setup for the noise:
noise.tsx
This gets us off to a great start, as you can see below.
Using the 3D instead of 2D noise allows for a smooth iteration through time, which is what I was going for in my website.

Pixelating it

Adding the Grid

Final Result

v0.1.0
LAST UPDATED MAY 28 2025
Feel free to reach out.
[email protected]