Move your mouse around to see the avatar's eyes follow you!
Add these 3 simple steps to any website:
<!-- Step 1: Include CSS -->
<link rel="stylesheet" href="avatar.css">
<!-- Step 2: Include JavaScript -->
<script src="avatar.js"></script>
<!-- Step 3: Initialize (after DOM loads) -->
<script>
// Wait for DOM to be ready
document.addEventListener('DOMContentLoaded', function() {
const avatar = new Avatar();
// Optional: Enable debug mode
// avatar.enableDebugMode();
// Optional: Change position
// avatar.setPosition('bottom-right');
});
</script>
// Toggle visibility
avatar.toggle(); // Toggle on/off
avatar.toggle(true); // Show
avatar.toggle(false); // Hide
// Change position
avatar.setPosition('bottom-right');
avatar.setPosition('bottom-left');
avatar.setPosition('top-right');
avatar.setPosition('top-left');
// Debug mode
avatar.enableDebugMode(); // Show tracking info
// Cleanup
avatar.destroy(); // Remove avatar