From 6e20316d9cd3abf36b74e914c56f1cf2261e8837 Mon Sep 17 00:00:00 2001 From: Vijay Shanker Sharma Date: Sun, 21 Jul 2024 07:24:21 +0530 Subject: [PATCH] Redesigned the 'Back to Top' button --- assets/css/style.css | 51 ++++++++++++++++++++++++++++++++++++++++++++ index.html | 12 ++++------- 2 files changed, 55 insertions(+), 8 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 9c1d34b9..91a50e76 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -3169,6 +3169,57 @@ footer { transition: background-color 0.3s; } +.Btn { + width: 45px; + height: 45px; + background-color:#222325; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + cursor: pointer; + position: relative; + border: none; +} + +.arrow path { + fill: #d78c8d; +} + +.text { + font-size: 0.7em; + width: 100px; + position: absolute; + color: white; + display: flex; + align-items: center; + justify-content: center; + bottom: -18px; + opacity: 0; + transition-duration: .7s; +} + +.Btn:hover .text { + opacity: 1; + transition-duration: .7s; +} + +.Btn:hover .arrow { + animation: slide-in-bottom .7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; +} + +@keyframes slide-in-bottom { + 0% { + transform: translateY(10px); + opacity: 0; + } + + 100% { + transform: translateY(0); + opacity: 1; + } +} + #back-to-top { width: 51px; height: 51px; diff --git a/index.html b/index.html index 273b0ee3..e227e36b 100644 --- a/index.html +++ b/index.html @@ -2727,14 +2727,10 @@

Quick Links

-
- - - - -
+