Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parallax-react-js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallax-react-js - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

5

build/lib/ParallaxContainer.js
import React from "react";
import { useState, useEffect } from "react";
import isAtLeastOneInView from './functions/isAtLeastOneInView';
function ParallaxContainer(props) {

@@ -40,5 +39,3 @@ var thisContainerPrefetch = React.createRef(); //create reference to this main div of the ParallaxContainer

//the current position and the distance scrolled between now and the last "onscroll" event.
if (isAtLeastOneInView(childrenarray[i])) {
childrenarray[i].style.transform = "translateY(" + (prevPosY + deltaScroll * (1 - parseFloat(childrenarray[i].getAttribute("parallaxSpeed").replace("%", "")) / 100)).toString() + "px)";
}
childrenarray[i].style.transform = "translateY(" + (prevPosY + deltaScroll * (1 - parseFloat(childrenarray[i].getAttribute("parallaxSpeed").replace("%", "")) / 100)).toString() + "px)";
}

@@ -45,0 +42,0 @@ catch (error) { //handle errors

2

package.json
{
"name": "parallax-react-js",
"version": "1.0.13",
"version": "1.0.14",
"description": "A libary for managing scroll speed of different components in react.",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc