2.0.20 • Published 3 years ago

@dreamsparkx/parallax v2.0.20

Weekly downloads
61
License
MIT
Repository
github
Last release
3 years ago

apple-tv-parallax

Dependency Status FOSSA Status semantic-release Apple TV Parallax npm

Live Demo: https://dreamsparkx.github.io/apple-tv-parallax/

Install

npm i @dreamsparkx/parallax

API

StepDescription
layersThe images will be stacked on top of each other and the last element/image will be at the top.
isStaticWhen you pass true, it disables the parallex effect, and shows the flattened image instead. (optional)
stylePass on css properties (optional)
classNamePass 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' }}
/>;

npm.io

License

FOSSA Status

2.0.20

3 years ago

2.0.19

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago