From f692a8242343936109fe98887704310dd8800532 Mon Sep 17 00:00:00 2001 From: simplePCBuilding <98422316+simplePCBuilding@users.noreply.github.com> Date: Thu, 24 Nov 2022 14:16:36 +0100 Subject: [PATCH] Update basicanimations.js --- js/basicanimations.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/basicanimations.js b/js/basicanimations.js index 0ff9ce9..0d91a8b 100644 --- a/js/basicanimations.js +++ b/js/basicanimations.js @@ -1,9 +1,11 @@ $(document).ready(function() { $("#ContentToInclude").load("/menu.html"); $(".linkbutton").mouseenter(function() { + $(this).stop() $(this).animate({"border-radius": "0px", "background-color": "darkblue"}, 200) }) $(".linkbutton").mouseleave(function() { + $(this).stop() $(this).animate({"border-radius": "20px", "background-color": "rgba(0,0,0,0)"}, 200) }) $(".textlink").mouseenter(function() {