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))
}
```
@bramus has noted that this function should `.filter()` out animation instances if your element has both keyframe animations and transitions running 👍🏻