From e8a8d902aa48c937854df2bb43fbd1c9be2283c9 Mon Sep 17 00:00:00 2001 From: Muzakir Shah Date: Sun, 8 Oct 2023 14:44:12 +0500 Subject: [PATCH 1/2] Smooth scroll behavior added smooth scroll behavior. --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index adda244..9c7a1c6 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,10 @@ --theme-switch: var(--switch-auto-black); } + html { + scroll-behavior: smooth; + } + html, body { margin: 0; padding: 0; From 4896a0133b38b2abac46049a731f9f6b50bee20e Mon Sep 17 00:00:00 2001 From: Muzakir Shah Date: Sun, 22 Oct 2023 16:55:03 +0500 Subject: [PATCH 2/2] Scroll to top button added --- index.html | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/index.html b/index.html index 9c7a1c6..2b5d11e 100644 --- a/index.html +++ b/index.html @@ -237,7 +237,44 @@ top: 0; transform: scale(0.75, 0.75); } + + .scrollTopBtn{ + position: fixed; + z-index:100; + border-radius: 50%; + border-color: var(--secondary-color); + background-color: var(--secondary-color); + right: 3rem; + bottom: 3rem; + width: 40px; + height: 40px; + display: none; + cursor: pointer; + } + + .scrollTopBtn:hover{ + background-color: var(--secondary-variant-color); + border-color: var(--secondary-variant-color); + } + + .scrollTopBtn svg{ + width: 40px; + height: 40px; + } + @media screen and (max-width: 767px) { + .scrollTopBtn { + bottom: 2rem; + right: 1rem; + width: 30px; + height: 30px; + } + .scrollTopBtn svg{ + width: 30px; + height: 30px; + } + } + footer { font-size: 0.9rem; text-align: center; @@ -590,6 +627,10 @@

Custom Canvas + +
+ +