Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
smooth scrolling
  • Loading branch information
kmr18006 committed Apr 19, 2024
1 parent 8f43213 commit 4bfa464
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions final-project/js/script.js
Expand Up @@ -32,10 +32,9 @@
scrollToTop();
});

// Function to scroll to the top of the page smoothly
function scrollToTop() {
window.scrollTo({
top: 0,
behavior: 'smooth' // Add smooth scrolling behavior
behavior: 'smooth'
});
}

0 comments on commit 4bfa464

Please sign in to comment.