Posted By

track02 on 05/13/11


Tagged

css ie browser SASS


Versions (?)

Cross Browser Transparency SASS


 / Published in: SASS
 

  1. @mixin opacity($value)
  2. opacity: #{"." + $value}
  3. filter: alpha(opacity=$value)
  4. -ms-filter: "alpha(opacity=$value)"
  5. -khtml-opacity: #{"." + $value}
  6. -webkit-opacity: #{"." + $value}
  7. -moz-opacity: #{"." + $value}
  8.  
  9. .opacity
  10. @include opacity(80)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: track02 on May 13, 2011

Its SASS, not SCSS

You need to login to post a comment.