Airon Zagarella
Airon Zagarella

Reputation: 717

Javascript flip/mirror an image

Does anyone know if its possible to flip an image and have content on its back. This is what I mean: Imagine holding a portrait in your hand. You then flip and look at the BACK of the portrait and the back has writing there. Im looking for something like that, that onClick the image will mirror/flip to the other side which will have writing on it. No 90 180 degree rotation. Its kind of a 3rd dimension rotation. Does anyone know if thats possible? and if so, how? Thanks

Upvotes: 0

Views: 3460

Answers (2)

Tschallacka
Tschallacka

Reputation: 28742

You could use the scale option in css with negative values. that flips an image. Then you also have 3dtransforms in css. Together with javascript they give nice effects.

Upvotes: 0

Sarfraz
Sarfraz

Reputation: 382909

Have a look at the Flip jQuery plugin and its demo or QuickFlip

Upvotes: 3

Related Questions