Re: [csswg-drafts] [cssom-view-1] Provide onAnimationEnd callback in scrollIntoView options (#3744)

@Kymy no, I think I ended up just using `setTimeout` which is *far* from perfect but it is close enough to do the job for now.

```js
element.scrollIntoView({ behavior: 'smooth', block: 'start' });
setTimeout(() => {
  console.log('The browser has (theoretically) finished scrolling');
}, 500)
```

-- 
GitHub Notification of comment by Dan503
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3744#issuecomment-1225574491 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 24 August 2022 11:10:03 UTC