getTransitionProperties

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

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

Params

  1. $elm*-HTMLElement

    The element to get the properties from

Return

  1. -Object

    The transition properties

Example

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

Todo

  • testsnormal