I'm trying to use jquery to edit the css of an element to give it a random transition time, then rotate the element.
This all works fine in chrome, but in safari the first line of css edits aren't made, so all the transitions occur at the predefined speed.
var rspeed = (Math.random()/3)+0.6,
rtext = 'transform ' + rj + 's ease-in-out';
$('#tile').css( '-webkit-transition',rtext).css( '-moz-transition',rtext).css( '-ms-transition',rtext).css( '-o-transition',rtext).css( 'transition',rtext);
$('#tile').css( 'transform','rotateY(180deg)');
Why aren't the first edits being applied in safari?
EDIT: Here's an example to try in safari that highlights the issue: http://jsfiddle.net/ianbutterworth/5fnSF/30/