eye watch cursor - Free Download Make Eyes Watch Your Cursor As It Moves - jQuery BeautifulEyes

Free Download Make Eyes Watch Your Cursor As It Moves – jQuery BeautifulEyes

Posted on

This time I will share jQuery Plugin and tutorial about Make Eyes Watch Your Cursor As It Moves – jQuery BeautifulEyes, hope it will help you in programming stack.

eye watch cursor - Free Download Make Eyes Watch Your Cursor As It Moves - jQuery BeautifulEyes
File Size: 124 KB
Views Total: 578
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

BeautifulEyes is a funny jQuery plugin for user interaction that creates cartoon eyes always watching your mouse cursor as it moves around the webpage.

How to use it:

1. Download and import the BeautifulEyes plugin’s files into the HTML document. Note that the script beautiful-eyes.js must be loaded after the latest jQuery library.

1 <link rel="stylesheet" href="beautiful-eyes.css" />
2 <script src="/path/to/cdn/jquery.min.js"></script>
3 <script src="beautiful-eyes.js"></script>

2. Call the function on the target element in which you want to draw the cartoon eyes. Position and size options must be set when creating eyes.

1 <div id="example">
2   <img src="img.jpg" />
3 </div>
1 $('#example').makeEye({
2   size: 20,
3   position: {
4     x: 150,
5     y:135
6   }
7 });

3. Set the size of the eyeball. Default: 4.

1 $('#example').makeEye({
2   size: 20,
3   position: {
4     x: 150,
5     y:135
6   }
7   eyeBallSize: 15
8 });

4. Set the border width of the cartoon eyes. Default: 2.

1 $('#example').makeEye({
2   size: 20,
3   position: {
4     x: 150,
5     y:135
6   }
7   borderWidth: 3
8 });

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

source : jquery.net