Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
shvl authored Aug 6, 2024
1 parent a7b9ed6 commit 00745d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ <h1 class="text" id="text">😎</h1>
let blurValue = 0;
window.addEventListener("deviceorientation", function (event) {
const value = Math.abs(((event.beta - 90) / 180) * 20);
if (Date.now() - lastUpdate > 200) {
lastUpdate = Date.now();
textElement.style.filter = `blur(${value}px)`;
}
textElement.style.filter = `blur(${value}px)`;
});

document.querySelector("button").addEventListener("click", () => {
Expand Down

0 comments on commit 00745d6

Please sign in to comment.