Interactive Hover Effect In JavaScript – FollowCursor

Category: Animation , Javascript | October 10, 2018
AuthorbersLucas
Last UpdateOctober 10, 2018
LicenseMIT
Views929 views
Interactive Hover Effect In JavaScript – FollowCursor

FollowCursor is a pure JavaScript library for creating an interactive, CSS3 based hover effect that reacts to where the user’s mouse is on the element.

Install & Import:

# Yarn
$ yarn add followcursor
# NPM
$ npm install followcursor --save

How to use it:

Include reference to the FollowCursor at the bottom of the web page.

<script src="FollowCursor.js"></script>

Enable the hover effect on the images:

followCursor(document.querySelectorAll("img"));

Changelog:

v1.1.0 (10/10/2018)

  • NPM support

You Might Be Interested In:


Leave a Reply