Very simple way to achieve smooth scrolling:
<a
onClick="document.querySelector('.contact-form').scrollIntoView({ behavior: 'smooth' });"
>
</a>
Just by adding .scrollIntoView({ behavior: 'smooth' })
creates a smooth auto scroll to the element.