1.1.1 ā¢ Published 7 years ago
parallaxease v1.1.1
š 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/