react-parallax-scroll-component
v1.0.1
Published
Easiest way to add scroll parallax effect on the component
Downloads
13
Maintainers
Readme
React Parallax Component
Easiest way to add scroll parallax effect on the component.

Installation
npm install react-parallax-component
Usage
import ParallaxComponent from 'react-parallax-component';
<ParallaxComponent
speed="0.003"
width="300"
top="40%"
left="100"
>
<div>
Children component
</div>
</ParallaxComponent>Props
speed(String) - animation speed, default:-0.03width(String) - component width, default:autoheight(String) - component height, default:autotop(String) - component top position, default:inheritleft(String) - component left position, default:inheritright(String) - component top position, default:inherit
Development
$ npm installRun app
$ npm startAnd open in browser: http://localhost:4000
Build
$ npm run build