
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-parallax-mousemove
Advanced tools
Parallax elements based on mousemovement inspired by react-springy-parallax
A simple react wrapper component which takes an arbitrary number of children as layers. Layers are affected by the position of the mouse pointer in relation to the center of the window. This project was inspired by react-springy-parallax.
Clone repo
git clone https://github.com/adamwade2384/react-parallax-mousemove.git
Install dependencies
npm install
or yarn install
Start development server
npm start
or yarn start
Runs the demo app in development mode. Open http://localhost:3000 to view it in the browser.
Is located inside src/demo
directory, here you can test your library while developing
import ParallaxMousemove from 'react-parallax-mousemove'
The library provides you with two (2) components - A container component and layer component(s). The container component ParallaxMousemove takes the ParallaxMousemove.Layer component as children.
<ParallaxMousemove>
<ParallaxMousemove.Layer></ParallaxMousemove.Layer>
<ParallaxMousemove.Layer></ParallaxMousemove.Layer>
</ParallaxMousemove>
The props for each component is as follows:
prop | type | required |
---|---|---|
containerStyle | Obj | optional |
fullHeight | Bool | optional |
prop | type | required |
---|---|---|
config | Obj | required |
option | type | description |
---|---|---|
xFactor | Int | A percentage of the mousemove distance from the center of the screen on the x axis |
yFactor | Int | A percentage of the mousemove distance from the center of the screen on the y axis |
springSettings | Obj | The spring configuration settings for react-motion. |
option | type | description |
---|---|---|
stiffness | Int | The response and speed of layers in relation to mouse movements |
damping | Int | The spring and rebound of layers in relation to mouse movements |
FAQs
Parallax elements based on mousemovement inspired by react-springy-parallax
The npm package react-parallax-mousemove receives a total of 0 weekly downloads. As such, react-parallax-mousemove popularity was classified as not popular.
We found that react-parallax-mousemove 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.