Pro tip: If scrollIntoView JavaScript isn’t playing nice, try `scrollTo` with some math.
Like:
```js
const y = element.getBoundingClientRect().top + window.scrollY;
window.scrollTo({ top: y, behavior: 'smooth' });
```
Works better for me when the native method acts up.
Like:
```js
const y = element.getBoundingClientRect().top + window.scrollY;
window.scrollTo({ top: y, behavior: 'smooth' });
```
Works better for me when the native method acts up.
