Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexprut/simpleparallax.js

A Simple and light Parallax library
https://github.com/alexprut/simpleparallax.js

javascript javascript-plugin jquery jquery-plugin parallax

Last synced: 4 days ago
JSON representation

A Simple and light Parallax library

Awesome Lists containing this project

README

        

SimpleParallax.js
=================
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![MIT](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/alexprut/SimpleParallax.js/blob/master/LICENSE)

> A Simple and light Parallax library

Live demo: [http://alexprut.github.io/SimpleParallax.js](http://alexprut.github.io/SimpleParallax.js)

![SimpleParallax.js](https://github.com/alexprut/SimpleParallax.js/raw/master/img/simpleparallax.gif)

## Installation
* __Bower__:
Run from your console/terminal ```bower install simpleparallax.js --save```
* __From Source__:
Run ```git clone https://github.com/alexprut/SimpleParallax.js.git```
* __Direct download__:
Download the last version from [here](https://github.com/alexprut/SimpleParallax.js/archive/master.zip "download")

## Usage
```html



example


example


```

For a complete example see [index.html](https://github.com/alexprut/SimpleParallax.js/blob/staging/index.html)

#### Parameters
|Data Attribute|Type|Description|Default|
|----|----|-----------|-------|
|```data-parallax-scope```|```['global']```|the scope/region covered by the parallax effect|```'global'```|
|```data-parallax-axis```|```['both']```|the direction affected by the parallax effect|```'both'```|
|```data-parallax-detect```|```['mouseover']```|the event that triggers the effect|```'mouseover'```|
|```data-parallax-max-shift```|```int```|maximum shift in both directions of the elements|```1000```|
|```parallax-depth```|```int```|the depth of a item|```1```|
|```parallax-offset-x```|```int```|the offset of a item in pixels along the x axis|```0```|
|```parallax-offset-y```|```int```|the offset of a item in pixels along the y axis|```0```|

## License
SimpleParallax.js is licensed under the MIT License – see the LICENSE file for details.