Cursor Customization Plugin (jQuery Awesome Curs)
Add-ons

Plugin Description: This plugin allows you to change the cursor appearance within a specified area. Cursor icons are sourced from Font Awesome.
Usage
Step 1:
Include the CSS and JS files.
Install using: npm install jquery-awesome-cursor
1 2 3 | <link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css" type="text/css"><script src="node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script><script src="node_modules/jquery-awesome-cursor/dist/jquery.awesome-cursor.min.js" type="text/javascript"></script> |
Step 2: Usage
$('body').awesomeCursor('<icon name>');
$('body').awesomeCursor('eyedropper', {
color: '#ff0000'
}) 评论