Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dreamsparkx/parallex-image

Parallex Image is a port of atvImg library in react. It gives you Apple TV 3D parallex effect.
https://github.com/dreamsparkx/parallex-image

component parallex react

Last synced: 9 days ago
JSON representation

Parallex Image is a port of atvImg library in react. It gives you Apple TV 3D parallex effect.

Awesome Lists containing this project

README

        

# Parallex-Image
Parallex Image is a port of [atvImg library](https://github.com/drewwilson/atvImg "atvImg library") in react. It gives you Apple TV 3D parallex effect.

## Install
`npm install parallex-image --save`

## API
**Data**
- `layers`: This is required. The images will be stacked on top of each other and the last element will be at the top.
- `isStatic`: This is optional. When you pass `true`, it disables the parallex effect, and shows the flattened image (`staticFallback`) instead.
- `staticFallback`: This is optional. Pass the flattened image that contains all the layers.

## Example

``` javascript
import ParallexImage from 'parallex-image';

```

## License

[MIT](http://spdx.org/licenses/MIT.html "MIT")