var CSS3Props = (function () {
var ret = {},
style = document.createElement('div').style,
props = ['webkit', 'Moz', 'ms'],
p, i = 0;
//transform
for (p; p = props[i]; i++) if (p + 'Transform' in style) {
ret.TRANSFORM = p + 'Transform';
}
//transition
for (i = 0, p = null; p = props[i]; i++) if (p + 'Transition' in style) {
ret.TRANSITION = p + 'Transition';
}
return ret;
}());
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
22