Answer the question
In order to leave comments, you need to log in
How to use the X argument of @mixin multiple times on the same element?
Good afternoon!
There is a sass mixin to use transition:
@mixin transition-base($property:false){
@if(not $property){
transition:all 250ms ease 0s;
}
@else{
transition:$property 250ms ease 0s;
}
}
$property
.text{
@include transition-base($property:padding, $property:color);
}
transition:padding 250ms ease 0s, color 250ms ease 0s;
@include transition-base(padding, color, border-color);
transition:padding 0s ease 0s, color 0s ease 0s, border-color 250ms ease 0s;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question