Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 740 Bytes

getTransmationDuration.md

File metadata and controls

18 lines (13 loc) · 740 Bytes

getTransmationDuration

Get the animation or the transition duration

Parameters

Name Type Description Status Default
$elm { HTMLElement } The element to get the animation/transition duration from required

Return { Integer } The animation/transition duration in ms

Example

	import getTransmationDuration from 'coffeekraken-sugar/js/dom/getTransmationDuration'
getTransmationDuration($myElm) // 200

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