Cross Browser Transparency SASS


/ Published in: SASS



Copy this code and paste it in your HTML
  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

You need to login to post a comment.