jQuery Plugin To Rotate Elements Based On Mouse Position - follow-cursor
File Size: | 20 KB |
---|---|
Views Total: | 3916 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

follow-cursor is a tiny jQuery plugin which makes use of CSS3 transforms to rotate an element to follow the cursor position. Licensed under the Apache License Version 2.0.
How to use it:
1. Load the latest version of jQuery library and jQuery follow-cursor plugin at the end of your html file.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="follow-cursor.js"></script>
2. Just call the followCursor
function on the desired element and we're done.
$('#demo').followCursor();
3. That's it. Note that the plugin works on modern browsers which have CSS3 2D/3D transforms supported.
Change log:
2016-06-11
- JS update
This awesome jQuery plugin is developed by pstrinkle. For more Advanced Usages, please check the demo page or visit the official website.