Skip to content

ryanhefner/parallaxed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ˜Ž parallaxed

Easily apply parallax effects to page elements as you scroll.

How to install

Via npm

npm install --save parallaxed

Via Yarn

yarn add parallaxed

How to use

Options

  • selectors {string || Array} - Selectors used to generate the html elements that will be reported on.

  • onEnter {function} - Handler called when an element enters the viewport.

  • onExit {function} - Handler called when an element exits the viewport.

  • onProgress {function} - Handler called when as an element progresses through the viewport.

Example

Simple Example

License

MIT ยฉ Ryan Hefner