diff --git a/index.html b/index.html index 4b11e71..628c52e 100644 --- a/index.html +++ b/index.html @@ -3,13 +3,13 @@
-
+ {cssCode}
+
+ - A small experiment on creating beautiful, dynamic backgrounds with - colorful gradients & film grain. Built in React & Vite{" "} - with SVGs and layers of Radial Gradients. -
-- This app was inspired by the gradients used{" "} - - certain popular instagram post - {" "} - with beautiful gradients and a slight film grain applied. I wanted - to create something similar, but in a website form. -
-
- By using a SVG with a{" "}
- <feTurbulence> filter inside,
- stacked upon several radial-gradient{" "}
- background images, the same effect can be created. Since SVGs do not
- naturally repeat internally, the SVG itself must be generated in
- such a way that the noise always displays the same way.
-
- React comes in handy here, allowing composition of an SVG, and then
- conversion to a base64 encoded string.
- As a base64 image, it can be fed into
- the background CSS property, allowing
- dynamic SVG generation.
-