Socket
Socket
Sign inDemoInstall

react-scroll-parallax

Package Overview
Dependencies
8
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

4

cjs/classes/ParallaxController.js

@@ -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 @@

2

package.json
{
"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`. |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc