react-rellax
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -56,3 +56,4 @@ "use strict"; | ||
horizontal = _this$props.horizontal, | ||
onMove = _this$props.onMove; | ||
onMove = _this$props.onMove, | ||
wrapper = _this$props.wrapper; | ||
var config = {}; | ||
@@ -68,2 +69,6 @@ | ||
if (wrapper) { | ||
config.wrapper = wrapper; | ||
} | ||
if (typeof onMove === 'function') { | ||
@@ -70,0 +75,0 @@ config.callback = onMove.bind(this); |
{ | ||
"name": "react-rellax", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "React Parallax component using Rellax.js", | ||
@@ -51,4 +51,4 @@ "main": "lib/index.js", | ||
"prop-types": "^15.6.1", | ||
"rellax": "^1.6.2" | ||
"rellax": "^1.9.1" | ||
} | ||
} |
# react-rellax | ||
[Demo](https://nelonoel.github.io/react-rellax) | ||
[Live Demo](https://open.nelo.is/react-rellax) | ||
@@ -24,1 +24,2 @@ React Parallax component using [Rellax.js](https://github.com/dixonandmoe/rellax). | ||
- `zIndex` _(int)_ : Orders component on the z-axis | ||
- `wrapper` _(str)_ : Selector to use as a wrapper from which to calculate parallax position. |
10974
166
25
Updatedrellax@^1.9.1