How about using HTML5 animations? (Please excuse my ignorance if that is what you are already doing... although I don't think it's what you're doing, but I'm a complete HTML noob.)
Here are a couple tutorial videos for Hype:
Tumult Hype Tutorials
I have no connection to Hype. Just read about its release a while back, watched the videos, thought it was cool and might prove useful (or just fun) someday, so I bought it on the Mac App Store.
Honestly I've only fired it up a couple times; haven't had time to really play around with it yet. Although I did just spend a few minutes playing with it just now in order to see how easy it was to rotate an image clockwise.