DEV Community

loading...

Discussion on: scrollIntoView is the best thing since sliced bread

kwisatzhazerach profile image
roo kangaroo

I used {block: "nearest"} instead of {block: "center"}. It prevents the vertical scroll.
I also developed a horizontal scroll-carousel. And it works really fine!