Skip to content

Instantly share code, notes, and snippets.

@Reinmar Reinmar/gist:919470
Created Apr 14, 2011

Embed
What would you like to do?
var transform_property = (function (el) {
var properties = [
'transform',
'WebkitTransform',
'MozTransform',
'msTransform',
'OTransform'
];
var p;
while (p = properties.shift()) {
if (typeof el.style[p] !== 'undefined') {
return p;
}
}
return false;
})(new Element('div'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.