From 6aaab8de04d2514eab5de33ca690884b77c12c45 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:44:00 +0300 Subject: [PATCH] Update 1.js --- JAVASCRIPT/1.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/JAVASCRIPT/1.js b/JAVASCRIPT/1.js index 97457e9..16293cd 100644 --- a/JAVASCRIPT/1.js +++ b/JAVASCRIPT/1.js @@ -1,18 +1,3 @@ -/*BUTTON MOVEMENT*/ -const glassyButtons = document.querySelectorAll(".glassy-button"); -glassyButtons.forEach((button) => { - button.addEventListener("mousemove", (event) => { - const centerX = button.offsetWidth / 2; - const centerY = button.offsetHeight / 2; - - const offsetX = event.offsetX - centerX; - const offsetY = event.offsetY - centerY; - - button.style.setProperty("--_x-motion", `${offsetX}px`); - button.style.setProperty("--_y-motion", `${offsetY}px`); - }); -}); - /*IMAGE CHANGER*/ let currentIndex = 0; const images = document.querySelectorAll('#photo img');