A light weight tool for creating infinite SVG backgrounds.
-
Clone this repo and open
background.svg
-
Edit the CSS styles at the top of
background.svg
as desired -
See
index.html
as an example or addbackground: url(background.svg)
to the body of your website
With a few simple changes, you can make the patterns below. Use css transitions
or animations
for an even greater effect!
build.js
can be run with node to generate the svg document seen inside background.svg
. Using build.js
allows one to add arbitrary classes to the rectangles
in the SVG, which could then be styled in the same way as the currently existing classes.