Make An Element Follow Your Mouse - jQuery mouseFollower

File Size: 2.88 KB
Views Total: 3390
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Make An Element Follow Your Mouse - jQuery mouseFollower

mouseFollower is a small jQuery plugin makes any element follow your mouse inside a specific container, with a smooth animation.

See also:

How to use it:

1. Add your element to a container element as this:

<div class="container">
  <span class="badge">Element</span>

2. Add jQuery library and the mouseFollower.js script to the web page.

<script src="" 
<script src="jquery.mousefollower.js"></script>

3. Call the function on the container element and done.


4. You are allowed to change the default CSS selector of the element which will move along with your mouse.


     followerSelector: ".badge"

Change log:


  • bugfixed


  • Add data variable to avoid initialize two time the same canvas

This awesome jQuery plugin is developed by julien-its. For more Advanced Usages, please check the demo page or visit the official website.