4.0.0 • Published 3 years ago
easy-parallax v4.0.0
Easy Parallax
Usage
Install npm / yarn package
$ npm install easy-parallax
$ yarn add easy-parallaxCreate EasyParallax stage and add Parallax elements:
const stage = easyParallax(window)
const element = document.getElementById("#parallax")
stage.add(element, { speed: 0.5, type: 'scroll' })Development
$ npm install --global gulp
$ gulp distThe result is available in the dist/ folder.
License
MIT