Easiest way to add scroll parallax effect on the component
npm install react-parallax-componentEasiest way to add scroll parallax effect on the component.
npm install react-parallax-component
import ParallaxComponent from 'react-parallax-component';
``javascript`
width="300"
top="40%"
left="100"
>
Children component
_(String)_ - animation speed, default: -0.03
- width _(String)_ - component width, default: auto
- height _(String)_ - component height, default: auto
- top _(String)_ - component top position, default: inherit
- left _(String)_ - component left position, default: inherit
- right _(String)_ - component top position, default: inheritDevelopment
`
$ npm install
`Run app
`
$ npm start
`
And open in browser: http://localhost:4000Build
`
$ npm run build
``