Posted By

FrederickWeiss on 03/23/14


Tagged

SASS mixin


Versions (?)

Opacity


 / Published in: CSS
 

  1. SASS /////////////////////////////////////////////
  2.  
  3. @mixin opacity($opacity) {
  4. opacity: $opacity;
  5. $opacity-ie: $opacity * 100;
  6. filter: alpha(opacity=$opacity-ie); //IE8
  7. }
  8.  
  9.  
  10.  
  11.  
  12. USAGE /////////////////////////////////////////////
  13.  
  14.  
  15. .article-heading {
  16. @include opacity(0.8);
  17. }

Report this snippet  

You need to login to post a comment.