1.0.2-beta • Published 5 years ago

ease-parallax v1.0.2-beta

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

ease-parallax

Attach parallax to any element of your page.

How to use

  1. import ease-parallax

import EaseParallax from 'ease-parallax'

Or

<script type="text/javascript" src="/lib/parallax.js"></script>

  1. Instanciate EaseParallax
import EaseParallax from 'ease-parallax'

const myElement = document.getElementById('my-element')
const parallaxOnMyElement = new EaseParallax(myElement)

parallaxOnMyElement.start()