whenTransitionEnd

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.when

Monitor an HTMLElement to be notified when his transition has ended

Params

  1. $elm*-HTMLElement

    The element to monitor

Return

  1. -(Promise<HTMLElement>)

    The promise that will be resolved when the element transition has ended

Example

import { whenTransitionEnd } from '@blackbyte/sugar/dom'
await whenTransitionEnd(myCoolHTMLElement);

Todo

  • testsnormal