simple-parallax

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i simple-parallax

Weekly Downloads

9

Version

1.0.1

License

MIT

Last publish

Collaborators

  • alexlazydev