getAnimationProperties

Type:Function
Status:beta
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style

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

Params

  1. $elm*-HTMLElement

    The element to get the properties from

Return

  1. -Object

    The animation properties

Example

import { getAnimationProperties } from '@blackbyte/sugar/dom'
const props = getAnimationProperties($myCoolHTMLElement);
// output format
// {
// 	name : ['animation1'],
// 	duration : [200],
// 	delay : [0],
// 	timingFunction : ['linear'],
// 	iterationCount : [1],
// 	direction : ['forward'],
// 	totalDuration : 200
// }

Todo

  • testsnormal