4.0.0 • Published 4 years ago
easy-parallax
Licence
MIT
Version
4.0.0
Deps
0
Size
61 kB
Vulns
0
Weekly
0
Easy Parallax
Usage
Install npm / yarn package
$ npm install easy-parallax
$ yarn add easy-parallax
Create 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 dist
The result is available in the dist/ folder.
License
MIT