shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getRotateProperties
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style
Get a rotate properties of an HTMLElement
Params
- $elm*-HTMLElement
The element to get the properties from
Return
- -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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space