diff --git a/index.html b/index.html index adda244..2b5d11e 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; @@ -233,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; @@ -586,6 +627,10 @@

Custom Canvas + +
+ +