I mean - can this:
var prefix = 'webkit';
element.style['marginTop'] = '20px';
element.style[prefix + 'Transform'] = 'translate(100%, 0, 0)';
be rewritten into a single statement?
In jQuery there's css() which accepts an object with properties, but it doesn't work when properties are made out of variables
$(element).css({
  marginTop: '20px',
  prefix + 'Transform': 'translate(100%, 0, 0)'  // doesn't work
});
 
     
    