react-move-element
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

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>

Package Sidebar

Install

npm i react-move-element

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

25.6 kB

Total Files

11

Last publish

Collaborators

  • toutdouxdoux