We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07f772 commit 555a3ddCopy full SHA for 555a3dd
css/index.css
@@ -62,6 +62,7 @@ nav {
62
63
.logo-content{
64
display: inherit;
65
+ cursor: pointer;
66
}
67
68
.nav-links {
script.js
@@ -13,4 +13,13 @@ function toggleMenu() {
13
hamburgerIcon.style.display = "block";
14
xIcon.style.display = "none";
15
16
-}
+}
17
+
18
+// scroll to top when clicking the logo
19
+document.querySelector(".logo").addEventListener("click", () => {
20
+ window.scrollTo({
21
+ top: 0,
22
+ behavior: "smooth"
23
+ })
24
25
+})
0 commit comments