CSS: Rotate Image

(Last Updated On: )

If you want to rotate an image you can do this very easily.

Directly with Class:

.rotate {
	-webkit-transform: rotate(90 deg);
	transform:  rotate(90 deg);
	-ms-transform:  rotate(90 deg);
}

Jquery:

$("#myImage").css("-webkit-transform", "rotate(90 deg)");
$("#myImage").css("transform", "rotate(90 deg)");
$("#myImage").css("-ms-transform", "rotate(90 deg)");