Email or username:

Password:

Forgot your password?
Adam Argyle

want to know when **all the transitions** on an element have **finished**? regardless of their individual durations?

I gotchu.

```js
function onTransitionsEnded(node) {
return Promise.allSettled(
node.getAnimations().map(animation => animation.finished))
}
```

1 comment
Adam Argyle

@bramus has noted that this function should `.filter()` out animation instances if your element has both keyframe animations and transitions running 👍🏻

Go Up