Posts

Featured

Play Emoji - Development Series #3

HTML <!DOCTYPE html> <html lang="en"> <head>     <link rel="stylesheet" href="playemoji.css">     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title> </head> <body>     <div class="face">         <div class="eyes">             <div class="eye"></div>             <div class="eye"></div>         </div>     </div>     <script>         document.querySelector('body').addEventListener('mousemove', eyeball);         function eyeball()         {             var eye = document.querySelectorAll('.eye');             eye.forEach(function(eye){                 let x = (eye.getBoundingClientRect().left) + (eye.clientWidth / 2);                 let y = (eye.g
Recent posts