Coffeekraken.io 0.0.1

getAnimationProperties

Get the css animation 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 getAnimationProperties from 'sugarcss/js/dom/getAnimationProperties'
const props = getAnimationProperties(myCoolHTMLElement);
// output format
// {
//     name : ['animation1'],
//     duration : [200],
//     delay : [0],
//     timingFunction : ['linear'],
//     iterationCount : [1],
//     direction : ['forward'],
//     totalDuration : 200
// }

Author : Olivier Bossel olivier.bossel@gmail.com