2.0.20 • Published 4 years ago
@dreamsparkx/parallax v2.0.20
apple-tv-parallax
Live Demo: https://dreamsparkx.github.io/apple-tv-parallax/
Install
npm i @dreamsparkx/parallax
API
Step | Description |
---|---|
layers | The images will be stacked on top of each other and the last element/image will be at the top. |
isStatic | When you pass true , it disables the parallex effect, and shows the flattened image instead. (optional) |
style | Pass on css properties (optional) |
className | Pass on className (optional). |
Example
import { Parallax } from '@dreamsparkx/parallax';
<Parallex
layers={['/assets/images/back.png', '/assets/images/front.png']}
isStatic={false}
style={{ flex: 0.21, height: 100, textAlign: 'center' }}
/>;
License
2.0.20
4 years ago
2.0.19
4 years ago
2.0.18
4 years ago
2.0.17
4 years ago
2.0.16
4 years ago
2.0.15
4 years ago
2.0.14
4 years ago
2.0.13
4 years ago
2.0.12
5 years ago
2.0.11
5 years ago
2.0.10
5 years ago
2.0.9
5 years ago
2.0.8
5 years ago
2.0.7
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago