Created
July 20, 2018 12:30
-
-
Save MMasey/f8c4f32a93a53faf487aab256820b150 to your computer and use it in GitHub Desktop.
How to flip an image using CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flip-vertical { | |
transform: scaleY(-1); | |
} | |
.flip-horizontal { | |
transform: scaleX(-1); | |
} | |
.flip-both { | |
transform: scale(-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment