very smooth effect javascript code example Example: how to smooth scroll in javascript Click to copywindow.scrollTo({ top: 900, behavior: 'smooth' })