Here we used angular scroll behaviour in functions. Spanish - How to write lm instead of lim? So now you know where you are and how you arrived there. Please consider editing your post to add more explanation about what your code does and why it will solve the problem. Syntax scrollTo(x-coord, y-coord) scrollTo(options) Parameters x-coord is the pixel along the horizontal axis of the element that you want displayed in the upper left. Animating this method with the available inbuilt animations can make the scroll smoother. Once suspended, chetan_atrawalkar will not be able to comment or publish posts until their suspension is removed. Smooth scrolling when clicking an anchor link, jQuery - Scroll element to the middle of the screen instead of to the top with an anchor link, jQuery Smooth Scroll to Top AND to Anchor by ID, jQuery smooth scroll to anchor with a fixed menu only works when at page top. You should start using jQuery or some other js lib. Not all. this will help you to smoothly scroll to the top of the page. const scrollToTop = () => { A good answer will have a plausible reason for why it could solve the OP's issue. window.scrollTo (xCoord, yCoord); Parameters xCoord is the pixel along the horizontal axis. If the element has finished scrolling trigger an optional callback function. theMaxx answer works in nuxt/vue, smooth scrolling is default behavior,