Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-parallax-effect
Advanced tools
A React component for applying a parallax scroll to content.
React-Parallax-Effect is a React component designed for deploying content into a view that relies on srolling for navigation. The content can be arranged in layers that mimic the parallax effect, and move at different velocities while scrolling. Layers are assigned by passing them in as children to the component. The first child node determines the scrolling range and motion of its siblings. The parallax differential is determined by the rangeIndex property assigned to each child. The value of the rangeIndex determines the magnitude of the speed differential applied to the layer. Callbacks are abailable for onReady and onChange, and a jumpTo() method is used to adjuste the scroll location of the first child. The effect presents the designer and user creative ways for presenting and interacting with content.
See the demo at http://www.uismithing.com/main/wares/parallax.
https://github.com/uismithing/react-parallax-effect
npm install react-parallax-effect -s
import Parallax from "react-parallax-effect"
<Parallax ref="reactparallax" {...props}>
<!--
- parallax children
- rangeIndex must be >= 1
- the first child assumes scroll authority of sibling child layers
- rangeIndex determines the scroll speed; e.g. rangeIndex=2 scrolls half the speed of rangeIndex=1
- the stack order of the children determines thier order in the z-index stack
-->
<div ref="layer_0" rangeIndex="1">
<!-- layer children -->
</div>
<div ref="layer_1" rangeIndex="2">
<!-- layer children -->
</div>
...
<div ref="layer_n" rangeIndex="n">
<!-- layer children -->
</div>
</Parallax>
FAQs
A React component for applying a parallax scroll to content.
The npm package react-parallax-effect receives a total of 2 weekly downloads. As such, react-parallax-effect popularity was classified as not popular.
We found that react-parallax-effect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.