getRotateProperties

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

Get a rotate properties of an HTMLElement

Params

  1. $elm*-HTMLElement

    The element to get the properties from

Return

  1. -Object|undefined

    The translate x,y and z properties

Example

import { getRotateProperties } from '@blackbyte/sugar/dom'
const props = getRotateProperties($myCoolHTMLElement);
// output format
// {
// 	x : 100,
// 	y : 0,
// 	z : 0
// }

Todo

  • testsnormal