🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

follow-cursor is a tiny jQuery plugin which makes use of CSS3 transforms to rotate an element to follow the cursor position.

Rotate rotation

Documentation

jquery-follow-cursor

jQuery plugin that causes any element to rotate following the mouse (cursor location)

Latest release npm

Usage

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/libs/jquery-follow-cursor/follow-cursor.js"></script>  <canvas id='eye' height="220" width="220"></canvas>  <script>     $('#eye').followCursor(); </script>

You May Also Like