React Parallax Mousemove
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.Getting Started
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.
Demo app
Is located insidesrc/demo
directory, here you can test your library while developingUsage
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.Layer></ParallaxMousemove.Layer>
<ParallaxMousemove.Layer></ParallaxMousemove.Layer>
```The props for each component is as follows: