Created
June 15, 2022 15:05
-
-
Save enrico-atzeni/e7bb11aff4fdcaac68568239ee65015e to your computer and use it in GitHub Desktop.
Simple in-console mouse-following blur circle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.insertAdjacentHTML("beforeEnd",'<div id="blurme" style="position: fixed;z-index: 999;background: rgba(255,255,255,.1);height: 100px;width:100px;margin:-50px 0 0 -50px;backdrop-filter: blur(5px);border-radius: 5em;"></div>');window.bbb = document.getElementById('blurme');document.body.onmousemove = (e) => {window.bbb.style.left=e.clientX+"px";window.bbb.style.top=e.clientY+"px"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment