Zero-Matter
Zero Matter is a simple library for adding effect to elements when scrolling the page. No Jquery. Just 998b minified.
The Zero Matter is a fictional concept in the Marvel Comics Universe. Zero Matter, is a form of unstable and powerful cosmic radiation made of pure negative energy.
Install
You can get it on npm.
$ npm install zero-matter --save
Or bower.
$ bower install zero-matter --save
If you're not into package management, just download a ZIP file.
Usage
First, include the script located on the DIST folder.
Now, you need to instantiate it by passing a DOM selector.
var darkforce = '.className';
And put these lines on your css file
ToDo
- Add option to margin to run effect;
- Add option to accept array;
- Add more effect options like magnet, saturation and more;
Issues
- Read this before Issue Template
Pull Requests
- Read this before How Write The Perfect Pull Request