I’m trying to learn interSectionObserver and ScrollIntoView in javascript
but ScrollIntoView works odd
targetToScroll.scrollIntoView(); // works
// code below does not work
// targetToScroll.scrollIntoView({behavior: 'smooth'});
for online testing checkout my pen My pen
javascript file line 11 to 14