Coffeekraken.io 0.0.1

getTranslateProperties

Get a translate properties of an HTMLElement

Name Type Description Status Default
elm { HTMLElement } The element to get the properties from required

Return { Object } The translate x,y and z properties

Example

    import getTranslateProperties from 'sugarcss/js/dom/getTranslateProperties'
const props = getTranslateProperties(myCoolHTMLElement);
// output format
// {
//     x : 100,
//     y : 0,
//     z : 0
// }

Author : Olivier Bossel olivier.bossel@gmail.com