Skip to content

JavaScript code that will cause an image to watch the mouse pointer on a web page.

Notifications You must be signed in to change notification settings

hashbangcode/look-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Look Example

An example of a script that uses styles to make it appear that a face is looking at the mouse as it moves around a web page.

This has two examples.

  • look_rectagle.html - Uses a simple bounding box technique to update the background position.
  • Look_angle.html - Uses a angle calcualtion technique to update the background position.

For more information on how this works take a look at Creating A Mouse "Looking" Script With JavaScript.

You can also see an example of this in action.

About

JavaScript code that will cause an image to watch the mouse pointer on a web page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages