function
transform()
Option name | Type | Description |
---|---|---|
type | String | |
val | String |
function transform(type, val) {
var prefixes = ['-webkit-', '-moz-', '-o-', '-ms-', ''];
var i = 0;
var len = prefixes.length;
var str = '';
for (; i < len; i++) {
if (typeof val === 'object') {
str += prefixes[i] + 'transform: ';
for (var j in val) {
str += j + '(' + val[j] + '); ';
}
} else {
str += prefixes[i] + 'transform: ' + type + '(' + val + '); ';
}
}
return str;
}
Base.exportjQuery(transform, 'transform');
return transform;
}));