I use CSS transitions to rotate an image
img {
transition:all 5s ease-out;
}
To change the rotation direction, I utilize jQuery
$('img').css({'transform':'rotate('+2000+'deg)'});
Is it possible to switch the rotation direction randomly during the animation while maintaining the current easing and duration?