How to smoothly scroll an element into view using js scroll into view? or What's the best way to impl

20 Replies, 1535 Views

Hey! I had the same issue with js scroll into view not being smooth. Turns out some browsers don’t fully support the `behavior: 'smooth'` option.

Try adding a polyfill like `smoothscroll-polyfill`—just load it before your script. Fixed it for me!

Also, double-check if there’s any CSS `overflow` weirdness on parent containers. That can mess with scrolling.

Messages In This Thread



Users browsing this thread: 1 Guest(s)