Look Example

Project GitHub Stars
1
Project GitHub Watchers
1

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.