0.30.0 • Published 7 years ago

react-backgrounds v0.30.0

Weekly downloads
85
License
ISC
Repository
github
Last release
7 years ago

React-Backgrounds

Geometric Backgrounds built with React.js

View the demo, or check out the project on GitHub and NPM

Installation

In the terminal:

npm install react-backgrounds --save-dev

In your JS:

import Iris from 'react-backgrounds';
...
ReactDOM.render(
    <Iris shapeCount={50} colors={['#b71a49','#006b94']} />,
    document.getElementById('react-bg')
);

In your HTML:

<div id="react-bg"></div>;  

Configuration/Options

shapeCount={...}

This attribute specifies the number of shapes that will be created. Currently, this must always be set -though I am working on creating a default 'random' generator.

colors={'...','...',...}

You can use any color combination that you want. Simply supply the colors as an array of comma separated strings inside the 'colors' attribute. Colors will be rendered in the order in which you supply them. This defaults to #000000.

opacity={...}

Set the opacity of the shapes. This defaults to .1.

Examples

harry-anderson.github.io

0.30.0

7 years ago

0.29.0

7 years ago

0.28.0

7 years ago

0.27.0

7 years ago

0.26.0

7 years ago

0.25.0

7 years ago

0.24.0

7 years ago

0.23.0

7 years ago

0.22.0

7 years ago

0.21.0

7 years ago

0.20.0

7 years ago

0.19.0

7 years ago

0.18.0

7 years ago

0.17.0

7 years ago

0.16.0

7 years ago

0.15.0

7 years ago

0.14.0

7 years ago

0.13.0

7 years ago

0.11.0

7 years ago

0.10.0

7 years ago

0.9.0

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago