Skip to content

Instantly share code, notes, and snippets.

@ischenkodv
Created July 26, 2013 19:27
Show Gist options
  • Save ischenkodv/6091581 to your computer and use it in GitHub Desktop.
Save ischenkodv/6091581 to your computer and use it in GitHub Desktop.
CSS rotate element 5 degrees in IE
/* 5 degree */
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.99, M12=-0.08, M21=0.08, M22=0.99, SizingMethod="auto expand");
/*
m11 = sin (5 * pi / 180)
m12 = cos (5 * pi / 180)
m21 = cos (5 * pi/ 180)
m22 = sin (5 * pi / 180)
*/
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 */
/* http://stackoverflow.com/questions/4617220/css-rotate-property-in-ie */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment