Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 927 Bytes

addAnimationClass.md

File metadata and controls

20 lines (14 loc) · 927 Bytes

addAnimationClass

Add a class that trigger an animation and remove it at the end

Parameters

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

Example

	import addAnimationClass from 'coffeekraken-sugar/js/dom/addAnimationClass'
addAnimationClass(myElm, 'my-cool-class')

Author : Olivier Bossel [email protected] https://olivierbossel.com