From 92a2d1b52877471dc5a317b6b2109dc2e08c971f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 29 Mar 2024 16:04:28 +0000 Subject: [PATCH] Fix animation for shareMenu Signed-off-by: GitHub Action --- assets/js/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 5668d0d..8a6feca 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -54,7 +54,7 @@ const toggleMobileMenu = () => { mobileMenuVisible = true; } else { mobileMenu.style.animationName = 'bounceOutRight'; - mobileMenu.style.webkitAnimationName = 'bounceOutRight' + mobileMenu.style.webkitAnimationName = 'bounceOutRight'; mobileMenu.style.display = 'none'; mobileMenuVisible = false; } @@ -72,7 +72,8 @@ const shareMobileMenu = () => { shareMenuVisible = true; } else { shareMenu.style.animationName = 'bounceOutRight'; - shareMenu.style.webkitAnimationName = 'bounceOutRight' + shareMenu.style.webkitAnimationName = 'bounceOutRight'; + shareMenu.style.display = 'none'; shareMenuVisible = false; } }