- Copy eyeballs.js to your server.
- Shove a
<div class="eyeball></div>in your HTML where you want your eyeballs — you can have more than one!
<script src="eyeballs.js"></script>at the end of your HTML
<body>to bring those balls to life. You can position and style div.eyeball with CSS, but I'd leave the dimensions padding and border alone.
You can also programmatically create new eyeballs after loading the script with the
new Eyeball(container) constructor.