Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 05:00
Show Gist options
  • Save magemore/2486578 to your computer and use it in GitHub Desktop.
Save magemore/2486578 to your computer and use it in GitHub Desktop.
Flipping an image – transform
img.flip {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
@magemore
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment