A react component library for cursor follower.
npm install react-cursor-follownpm i react-cursor-follow
A modern cursor follower react component.
Check out the example on CodeSandbox
``jsx harmony
import * as React from 'react'
import Cursor from 'react-cursor-follower'
const Component = (props) => {
return
}
`
#### UseMouseOptions
| Property | Type | Default | Description |
| ---------- | -------- | ------- | ------------------------------------------------------------------------------------------------------ |
| size | number | 23 | The size of the follower in px. |string
| color | | black | Any CSS color format works. Used for either background or border-color. |boolean
| pulse | | false | Activate infinite pulse animation. |boolean
| hollow | | false | Follow circle becomes hollow and has border with 1px and same color as color. |number
| opacity | | 1 | Range [0, 1] |string
| easing | | cubic-bezier(0.18, 0.89, 0.32, 1.28) | CSS Easing function for follower transition. |number
| duration | | 0.4 | Transition duration in seconds. |boolean
| custom | | false` | Set to true if you want to use your own CSS class. |
MIT