shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
whenAnimationEnd
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.when
Detect when animation ends
Params
- $elm*-HTMLElement
The element to listen on
Return
- -Promise<HTMLElement>
A promise that will be resolved once the animation has ended
Example
import { whenAnimationEnd } from '@blackbyte/sugar/dom'
whenAnimationEnd(myCoolElm).then(($elm) => {
// do something...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space