react-move-element
v1.0.14
Published
Rotating element that track the mouse in React (compatible React v17 and higher)
Downloads
31
Maintainers
Readme
React-move-element
Rotating element with your mouse movement in React
React-move-element is a react component that rotates your element(s) by tracking your mouse movements and scroll on your pages in React.
- Track your mouse & scroll
- Light package
- React v.16 and higher
Installation
yarn add react-move-element
npm install react-move-element
Using
import RotatingElement from 'react-move-element'
<RotatingElement isFixed={isFixed}>
<img
src={"/fileName"}
height={}
width={}
alt="exemple"
/>
</RotatingElement>
Props
| Props | Description | |---------|--------------------------------------------------------------| | isFixed | isFixed indicates that that the element is fixed on the page |
Exemple with props isFixed:
<RotatingElement isFixed={false}></RotatingElement>