arsenic

0.1.0 • Public • Published

Arsenic

Background component for React.js

Demo & Examples

Live demo: yuanyan.github.io/arsenic

To build the examples locally, run:

npm install
gulp dev

Then open localhost:9999 in a browser.

Installation

The easiest way to use arsenic is to install it from NPM and include it in your own React build process (using Browserify, etc).

You can also use the standalone build by including dist/arsenic.js in your page. If you use this, make sure you have already included React, and it is available as a global variable.

npm install arsenic --save

Usage

// Some browsers need requestAnimationFrame polyfill.
var Arsenic = require('arsenic');
var Example = React.createClass({
    render: function() {
        return (
            <Arsenic />
        );
    }
});

Browser Support

IE Chrome Firefox Opera Safari
IE 10+ ✔ Chrome 4.0+ ✔ Firefox 16.0+ ✔ Opera 15.0+ ✔ Safari 4.0+ ✔

Package Sidebar

Install

npm i arsenic

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • yuanyan