From 2dcca2ed0d0570745183ba417530e49f1681a7ae Mon Sep 17 00:00:00 2001 From: Sayyad Aslam Date: Sun, 2 Jun 2024 14:50:52 +0530 Subject: [PATCH] Update Scroll to top button --- Css-files/scroll-top-button.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Css-files/scroll-top-button.css b/Css-files/scroll-top-button.css index b9b83c31..5f5a756a 100644 --- a/Css-files/scroll-top-button.css +++ b/Css-files/scroll-top-button.css @@ -8,8 +8,9 @@ .scroll-top-button { position: fixed; - top: 82%; - right: 2.4%; + /* top: auto; */ + bottom: 3.2%; + left: 1.4%; width: 40px; height: 40px; display: flex; @@ -26,15 +27,15 @@ @keyframes bouncing { 0% { - top: 82%; + transform: translateY(0); } 50% { - top: 81%; + transform: translateY(-5px); } 100% { - top: 82%; + transform: translateY(0); } }