Skip to content

This exercise creates objects (eyes) that will follow the mouse around the screen.

Notifications You must be signed in to change notification settings

Kironian/EyeMovementExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

EyeMovementExercise

This exercise creates objects (eyes) that will follow the mouse around the screen.

// Description

This exercise serves to show my ability to use JavaScript, HTML, and CSS to create a working mouse tracker, so that elements on the page, such as the eyeballs in the example, follow the mouse. I achieved this by using a JavaScript function that utilized onmousemove to reference the css/html div elements and animate them.

// How To Run This script can be tested by downloading the .zip including the index, css, and js files. Once downloaded and unzipped, you may open the html file to test. As you move your mouse you should notice the eyes follow your ouse around the screen.

// Road Map of Improvements

In the future, I would love to add in more features to this face to further demonstraight my abilties, such as adding a mouth that could open or close depending on mouse location, or adding a function so that they eyes may blink when you "click"/press on the face.

// Licence Information

MIT License

Copyright (c) 2020 John Williams

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

This exercise creates objects (eyes) that will follow the mouse around the screen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published