1.0.1 • Published 7 years ago

simple-parallax v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

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

OptionValuesDefaultDescription
shiftnumber5The rate of displacement of the image
mobiletrue or falsetrueDo not initialize on mobile devices

Exemple

$('#parallax').simpleParallax({
  shift: 10,
  mobile: false
});

Author

Alexey Cherepanov: Website

License

Licensed under MIT. Enjoy.