parallaxease
v1.1.1
Published
An easing parallax library
Downloads
3
Readme
😎 Parallaxease 😎
An easing parallax library, check out the demo.
Installation
Install library with npm
$ npm install --save parallaxease
Import and instantiate library, requires jQuery.
var Parallaxease = require('./parallaxease')
$(function() {
// trigger effect using min-width media query
new Parallaxease({
breakpoint: '768px'
})
})
Mark up target elements with data-parallax
<div data-parallax='{"y": -100}'></div>
Contribute
Clone respository and run locally, check out the demo.
# install dependencies
$ npm install
# compile example code
$ npm run build
# run example
$ npm start
🌎 server running on http://localhost:9000/