theB
theB

Reputation: 2228

rotate image in javascript

I'm trying to flip an image in a Yahoo! Widget. They don't support CSS transform, an HTML DOM, canvas or WebGL.

How can I flip an image using JavaScript, without access to any APIs those technologies would provide?

Upvotes: 2

Views: 369

Answers (2)

Vlad Nicula
Vlad Nicula

Reputation: 3696

Maybe you should take a look at http://raphaeljs.com/.

Raphaël currently supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+.

Upvotes: 2

Mild Fuzz
Mild Fuzz

Reputation: 30651

Give raphael.js a whirl, it can do this sort of thing. Think it uses canvas.

There's a demo of it doing rotation: http://raphaeljs.com/image-rotation.html

Upvotes: 1

Related Questions