follow-mouse

2.0.0 • Public • Published

follow-mouse

Simple function to create smooth effects for the mouse cursor on your website with GSAP

npm GitHub package version NPM Downloads

700B gzipped

Demo


Installation

$ yarn add gsap
$ yarn add follow-mouse

Import

import gsap from 'gsap'
import FollowMouse from 'follow-mouse'

FollowMouse.registerGSAP(gsap)

new FollowMouse({
	ease: 0.8
})

Destroy

const follower = new FollowMouse()

follower.destroy()

License

follow-mouse is released under MIT license

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i follow-mouse

    Weekly Downloads

    4

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    19.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • ux-ui