2.0.0 • Published 4 years ago

react-cursor-follow v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

A modern cursor follower react component.

Quick Start

Check out the example on CodeSandbox

import * as React from 'react'
import Cursor from 'react-cursor-follower'

const Component = (props) => {
  return <Cursor />
}

Props

UseMouseOptions

PropertyTypeDefaultDescription
sizenumber23The size of the follower in px.
colorstringblackAny CSS color format works. Used for either background or border-color.
pulsebooleanfalseActivate infinite pulse animation.
hollowbooleanfalseFollow circle becomes hollow and has border with 1px and same color as color.
opacitynumber1Range 0, 1
easingstringcubic-bezier(0.18, 0.89, 0.32, 1.28)CSS Easing function for follower transition.
durationnumber0.4Transition duration in seconds.
custombooleanfalseSet to true if you want to use your own CSS class.

LICENSE

MIT