scrollIntoView JavaScript struggles with dynamic content unless you call it *after* the element exists.
Try wrapping it in a `DOMContentLoaded` event or use `IntersectionObserver` to detect when the element’s ready.
And yeah, the smooth option is hit or miss—Chrome’s usually okay, but Firefox can be janky.
Try wrapping it in a `DOMContentLoaded` event or use `IntersectionObserver` to detect when the element’s ready.
And yeah, the smooth option is hit or miss—Chrome’s usually okay, but Firefox can be janky.
