1.0.0 • Published 6 years ago
kota-react-rellax v1.0.0
react-rellax
React Parallax component using Rellax.js. Fork of React Rellax
Installation
npm i --save react-rellaxNotes
- All props are optional.
- It's common to tweak
speedandpercentageto suit your design requirements. - All other props not mentioned below (e.g.
className,style, etc.) are passed down as usual.
Props
as(str) : Tag to use as a wrapper. Default:divcenter(bool) : Centers the component on the viewporthorizontal(bool) : Horizontal scrollingonMove(func) : Callback function which accepts an object{x: int, y: int}percentage(num) : Initial scroll percentagespeed(int) : Integer >= -10 && <=10 determines scroll speed. Default:-2zIndex(int) : Orders component on the z-axiswrapper(str) : Selector to use as a wrapper from which to calculate parallax position.
1.0.0
6 years ago