/SVGBackground

A lightweight tool for making SVG backgrounds

Primary LanguageJavaScript

SVG Background

A light weight tool for creating infinite SVG backgrounds.

How to Use

  1. Clone this repo and open background.svg

  2. Edit the CSS styles at the top of background.svg as desired

  3. See index.html as an example or add background: url(background.svg) to the body of your website

Live Demo

View Live Demo

Example Patterns

With a few simple changes, you can make the patterns below. Use css transitions or animations for an even greater effect!

Advanced

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.