add opacity function in mixin