get-transition-duration
v1.1.1
Published
get the transition duration of an element
Downloads
7
Readme
get-transition-duration
get the transition duration of an element
Getting Started
Install it via npm:
npm install get-transition-duration
And include in your project:
import getTransitionDuration from 'get-transition-duration';
Usage
/**
*@param {Element} element
*@param {Boolean} withDelay
*/
getTransitionDuration(element, withDelay) { ... } // => number
License
MIT