easy-parallax

Install npm / yarn package

Usage no npm install needed!

<script type="module">
  import easyParallax from 'https://cdn.skypack.dev/easy-parallax';
</script>

README

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