react-scroll-parallax
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -254,2 +254,6 @@ "use strict"; | ||
this.update = function () { | ||
var nx = hasScrollContainer ? viewEl.scrollLeft : window.pageXOffset; | ||
var ny = hasScrollContainer ? viewEl.scrollTop : window.pageYOffset; | ||
scroll.setScroll(nx, ny); | ||
_setViewSize(); | ||
@@ -256,0 +260,0 @@ |
{ | ||
"name": "react-scroll-parallax", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "React components to create parallax scroll effects for banners, images or any other DOM elements.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -91,4 +91,4 @@ # React Scroll Parallax | ||
| -------------- | :-----------------------------: | :------- | ------------------------------------------------------------------------------------------------------------------ | | ||
| **x** | `Array` of `String` or `Number` | `[0, 0]` | Offsets on x-axis in `%` or `px`. If no unit is passed percent is assumed. Percent is based on the elements width. | | ||
| **y** | `Array` of `String` or `Number` | `[0, 0]` | Offsets on y-axis in `%` or `px`. If no unit is passed percent is assumed. Percent is based on the elements width. | | ||
| **x** | `Array` of `String` or `Number` | `[0, 0]` | Initial and final offsets on x-axis in `%` or `px`. If no unit is passed percent is assumed. Percent is based on the elements width. | | ||
| **y** | `Array` of `String` or `Number` | `[0, 0]` | Initial and final offsets on y-axis in `%` or `px`. If no unit is passed percent is assumed. Percent is based on the elements width. | | ||
| **className** | `String` | | Optionally pass additional class names to be added to the outermost parallax element. | | ||
@@ -95,0 +95,0 @@ | **disabled** | `Boolean` | `false` | Disables parallax effects on individual elements when `true`. | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81539
1329