Skip to content

Instantly share code, notes, and snippets.

@andrewdc
Created January 14, 2010 18:39
Show Gist options
  • Save andrewdc/277379 to your computer and use it in GitHub Desktop.
Save andrewdc/277379 to your computer and use it in GitHub Desktop.
Sass Opacity Mixin
// !opacity should be passed in the x.x format
@mixin opacity($opacity)
:filter alpha(opacity: $opacity * 100)
:-moz-opacity = $opacity
:-khtml-opacity = $opacity
:opacity = $opacity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment