Created
January 29, 2014 09:23
-
-
Save Androguide/8684421 to your computer and use it in GitHub Desktop.
Sass mixin for prefixing the opacity propery
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
@mixin setOpacity($amount) { | |
-moz-opacity: $amount / 100; | |
-khtml-opacity: $amount / 100; | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + $amount + ")"; | |
filter: alpha(opacity=$amount); | |
opacity: $amount / 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment