React Parallax component using Rellax.js
React Parallax component using Rellax.js.
npm i --save react-rellax
speed
and percentage
to suit your design requirements.className
, style
, etc.) are passed down as usual.as
(str) : Tag to use as a wrapper. Default: div
centered
(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: -2
zIndex
(int) : Orders component on the z-axiswrapper
(str) : Selector to use as a wrapper from which to calculate parallax position.