- -
+
diff --git a/js/app.js b/js/app.js
index 2218e4c..59dabc5 100644
--- a/js/app.js
+++ b/js/app.js
@@ -95,4 +95,15 @@
})
})
-})();
\ No newline at end of file
+})();
+
+
+//added smooth scrolling when clicking any anchor link
+document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+});
\ No newline at end of file