leave(element, [options]);
Triggers an animation and then removes the element from the DOM. When the function is called a promise is returned that will be resolved during the next digest once the animation has completed.
Parameters
| Param | Type | Details |
|---|---|---|
| element | DOMElement | the element which will be removed from the DOM |
| options (optional) | object | an optional collection of options/styles that will be applied to the element |
Returns
Promise |
the animation callback promise |
Please login to continue.