simpleParallax
simpleParallax is very simple plugin for add parallax effect on your site.
Check out this demo to see it in action!
Setup
Clone this repository or install with npm npm install --save simple-parallax
.
$('#parallax').simpleParallax();
Default options
Option | Values | Default | Description |
---|
shift | number | 5 | The rate of displacement of the image |
mobile | true or false | true | Do not initialize on mobile devices |
Exemple
$('#parallax').simpleParallax({
shift: 10,
mobile: false
});
Author
Alexey Cherepanov: Website
License
Licensed under MIT. Enjoy.