Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-parallax-hook
Advanced tools
A simple hook for easily implementing Parallax.
import { useParallax } from 'react-parallax-hook';
const parallaxRef = useParallax();
return (
<>
<div ref={parallaxRef()} />
<img ref={parallaxRef({ multiplier: -120, from: 'top' })}>
</>
)
the parallaxRef method accepts these options:
{
multiplier?: number; // default: -60
from?: 'center' | 'top'; // default: 'center'
}
A single window.onScroll
event is used per component. Parallax values are only calculated for elements that are in view (according to IntersectionObserver). Every observer is destroyed when no longer in use.
property
as an optionFAQs
An easy to use and customisable parallax implementation
The npm package react-parallax-hook receives a total of 0 weekly downloads. As such, react-parallax-hook popularity was classified as not popular.
We found that react-parallax-hook 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.