React Ink
Add ink to any react component.
Usage
Include ./ink.css
within your stylesheet build process. Then you can include the <Ink />
component like so:
var React = require('react');
var Ink = require('react-ink');
module.exports = React.createClass({
render() {
return (
<div>
<Ink />
</div>
);
}
});
There are several options available for how <Ink />
renders, see the getDefaultProps()
declaration, however descriptions follow:
Configuration
{
background : true,
color : null,
duration : 1500,
opacity : 0.2,
radius : 150,
recenter : true
}