shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getTransformProperties
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style
Get a translate properties of an HTMLElement
Params
- $elm*-HTMLElement
The element to get the properties from
Return
- -Object
The translate x,y and z properties
Example
import { getTransformProperties } from '@blackbyte/sugar/dom'
const props = getTransformProperties($myCoolHTMLElement);
// output format
// {
// translateX : 100,
// translateY : 0,
// translateZ : 0,
// rotateX: 0,
// rotateY: 0,
// rotateZ: 0
// }Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space