diff --git a/script.js b/script.js new file mode 100644 index 0000000..eb386ef --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +// Example: Smooth scroll to sections +document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); +});