Add a class that trigger an animation and remove it at the end
Name | Type | Description | Status | Default |
---|---|---|---|---|
elm | { HTMLElement } | The element to take care of | required | |
class | { String } | The class to apply | required |
Return { HTMLElement } The elm to maintain chainability
import addAnimationClass from 'coffeekraken-sugar/js/dom/addAnimationClass'
addAnimationClass(myElm, 'my-cool-class')
Author : Olivier Bossel [email protected] https://olivierbossel.com