How to rotate an image using pure javascript in old browsers -


it several years ago (almost 7 years) when wanted rotate image in ie6. searched , found javascript code rotated image. started reading code , found out in parts of code shift operator has been employed rotating image. wondering how can rotate image without using frameworks , new features in new browsers css3, ....

is shift operators can rotate image? if so, how?

in internet explorer 6 , 8 can use filter in css rotate images.

to rotate 45 degrees can use code this:

filter: progid:dximagetransform.microsoft.matrix(sizingmethod='auto expand', m11=0.7071067811865476, m12=-0.7071067811865475, m21=0.7071067811865475, m22=0.7071067811865476); /* ie6,ie7 */ -ms-filter: "progid:dximagetransform.microsoft.matrix(sizingmethod='auto expand', m11=0.7071067811865476, m12=-0.7071067811865475, m21=0.7071067811865475, m22=0.7071067811865476)"; /* ie8 */ 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -