How would I go about converting a negative translate3d value into a positive number?
For example:
var val = $m('slider').style.webkitTransform;
console.log(val); // this returns a number like: translate3d(-93px, 0, 0);
How would I go about converting the values into positive numbers so that my output is:
translate3d(93px, 0, 0); // positive 93