Just some googly eyes.
Fair warning: this library is pretty useless. And only moderately fun... 🤷
But it seemed like a cool way to learn a bit about web components, so here it is: a component that creates googly eyes that follow your mouse.
(browser support is not perfect and the whole concept doesn't make much sense on mobile, so if it doesn't look right for you, well, tough luck 🤷)
Include the script: |
|
---|---|
Place ocz's wherever you want: |
|
Use |
|
Use CSS to style the eye: |
|