Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 25, 2012 23:10
Show Gist options
  • Select an option

  • Save Ricardo-Diaz/3956040 to your computer and use it in GitHub Desktop.

Select an option

Save Ricardo-Diaz/3956040 to your computer and use it in GitHub Desktop.
CSS: Flipping an Image-transform
Flipping an image – transform
More useful than you think. This is for when you have a button or arrow or other functional graphic that you don’t want or need to manually flip and upload an entirely separate image.
img.flip {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment