UNPKG

react-move-element

Version:

Rotating element that track the mouse in React (compatible React v17 and higher)

43 lines (31 loc) 935 B
# 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 ```sh yarn add react-move-element npm install react-move-element ``` ## Using ```sh 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: ```sh <RotatingElement isFixed={false}></RotatingElement> ```