smooth scroll bar js code example
Example 1: how to smooth scroll in javascript
window.scrollTo({ top: 900, behavior: 'smooth' })
Example 2: smooth-scroll.js
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/smooth-scroll/16.1.0/smooth-scroll.min.js"></script>