How could I create a mixin that uses as an argument a nested mixin property?
I explain myself with the next example.
I have a 'transition-property' mixin:
.transition-property (@props){
-webkit-transition-property: @props;
-moz-transition-property: @props;
-o-transition-property: @props;
transition-property: @props;
}
From this mixin I want to use a 'transform' mixin property, so I tried to call this like:
.transition-property(~"opacity, .transform");
The '.transform' mixin should return one of the next values:
transform
-ms-transform
-webkit-transform
The thing is that I don't find the way to inject these property names to the 'transition-property' mixin, could someone shed some light on this?
FINAL DESIRED CSS
element {
-webkit-transition-property: opacity, -webkit-transform;
-moz-transition-property: opacity, -moz-transform;
-o-transition-property: opacity, -o-transform;
transition-property: opacity, transform;
}