Why not just polyfill it? Some older browsers don’t support smooth scrolling, so adding a polyfill like *smoothscroll-polyfill* can save you headaches.
Just install it and call `smoothscroll.polyfill()` once. Then your regular `scrollTo` or `scrollIntoView` will work smoothly everywhere.
Bonus: It’s tiny (~2KB), so no bloat!
Just install it and call `smoothscroll.polyfill()` once. Then your regular `scrollTo` or `scrollIntoView` will work smoothly everywhere.
Bonus: It’s tiny (~2KB), so no bloat!
