1.1.1 ā€¢ Published 7 years ago

parallaxease v1.1.1

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

šŸ˜Ž 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/