Not ideal, but you could make separate image files for each rotated state of the image, then use JavaScript to change or CSS to change background-image: url('XXX'); Once the images have loaded (you could even pre-load them with JS), the animation between them should be very fast.