I have an application where I need to slide and rotate an image at the same time. Specifically, if you imagine a CD case, I need to slide the CD out of the case (say to the right), and rotate it 360 degrees as it comes out. The rotation needs to be from the center of the CD image (as expected)
Can someone assist? I’ve been at it a few hours with very limited success.
Thanks Much
You can’t reliably rotate an image by an arbitrary degree with JavaScript. Look into RaphaelJS which uses “SVG W3C Recommendation and VML as a base for creating graphics.” It is completely browser-independent and allows image rotation by arbitrary degrees.
See image and rotate for more info.