Joined May 2011
·

Henrik Nyh

Barsoom
·
Stockholm, Sweden
·
·
·

Posted to SASS Opacity Mixin over 1 year ago

Thanks!

I changed the casing to fit our conventions, maybe suits someone else:

@mixin opacity($value){
  $ie-value: $value * 100;
  opacity: $value;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity="+$ie-value+")";
  filter: alpha(opacity=$ie-value);
}
Achievements
129 Karma
0 Total ProTip Views