© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Joe Clark
Full-stack developer specializing in healthcare IT
I've always used jQuery for this, but nowadays, there's the native scrollIntoView method. I haven't tried this myself, but worth looking at as opposed to rolling your own:
css-tricks.com/snippets/jquery/smooth-scrolling
developer.mozilla.org/en-US/docs/Web/API/Element/…
DK
Well, I'm using scrollBy now. It's working.