I'd recommend looking up for scroll-behavior css property. It's working only on chrome at the moment but will be possible to do this without js on every browser in the future.
I'd recommend looking up for scroll-behavior css property. It's working only on chrome at the moment but will be possible to do this without js on every browser in the future.