Skip to content

Instantly share code, notes, and snippets.

@heroheman
Created May 18, 2011 21:05
Show Gist options
  • Save heroheman/979561 to your computer and use it in GitHub Desktop.
Save heroheman/979561 to your computer and use it in GitHub Desktop.
SASS: Cross Browser Transparency Mixin
@mixin opacity($value)
opacity: #{"." + $value}
filter: alpha(opacity=$value)
-ms-filter: "alpha(opacity=$value)"
-khtml-opacity: #{"." + $value}
-webkit-opacity: #{"." + $value}
-moz-opacity: #{"." + $value}
.opacity
@include opacity(80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment