This time I will share jQuery Plugin and tutorial about Cursor Position Tracker For jQuery – Cursor Tracker, hope it will help you in programming stack.
A Cursor Tracker built using jQuery that keeps track of the current cursor position and angle on mouse move.
How to use it:
1. Include both jQuery library and the Cursor Tracker’s script ‘cursor-tracker.js’ at the bottom of the webpage.
1 |
< script src = "//code.jquery.com/jquery.min.js" ></ script > |
2 |
< script src = "cursor-tracker.js" ></ script > |
2. Call the function on the target container where you want to track the cursor position.
1 |
$( ".element" ).cursor( "mousemove" , function (values) { |
3. Available attributes:
01 |
$( ".element" ).cursor( "mousemove" , function (values) { |
Change log:
2017-10-10
This awesome jQuery plugin is developed by tomislavjezidzic. For more Advanced Usages, please check the demo page or visit the official website.