Coffeekraken.io 0.0.1

getTransitionProperties

Get the css transition properties from an HTMLElement in an object format

Name Type Description Status Default
elm { HTMLElement } The element to get the properties from required

Return { Object } The animation properties

Example

    import getTransitionProperties from 'sugarcss/js/dom/getTransitionProperties'
const props = getTransitionProperties(myCoolHTMLElement);
// output format
// {
//     property : ['all'],
//     duration : [200],
//     delay : [0],
//     timingFunction : ['linear'],
//     totalDuration : 200
// }

Author : Olivier Bossel olivier.bossel@gmail.com