Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanhefner/parallaxed

😎 Easily apply parallax effects to page elements as you scroll.
https://github.com/ryanhefner/parallaxed

npm-package parallax parallax-plugin parallax-scrolling

Last synced: about 1 month ago
JSON representation

😎 Easily apply parallax effects to page elements as you scroll.

Awesome Lists containing this project

README

        

# 😎 parallaxed

Easily apply parallax effects to page elements as you scroll.

## How to install

Via [npm](https://npmjs.com/package/parallaxed)

```sh
npm install --save parallaxed
```

Via [Yarn](https://yarn.fyi/parallaxed)

```sh
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](examples/simple.html)

## License

[MIT](LICENSE) © [Ryan Hefner](https://www.ryanhefner.com)