For a quick test, try this in the console:
```js
document.body.style.scrollBehavior = 'smooth';
```
If that works, then it’s definitely a browser support thing.
Otherwise, maybe your element is hidden or not in the DOM yet? Double-check with `console.log(element)` before scrolling.
```js
document.body.style.scrollBehavior = 'smooth';
```
If that works, then it’s definitely a browser support thing.
Otherwise, maybe your element is hidden or not in the DOM yet? Double-check with `console.log(element)` before scrolling.
