Answer the question
In order to leave comments, you need to log in
Dynamic property names in .less
Is it possible to use variables in less as property names. From the class example it will be clearer what you want in the end
.my_attr(@param: opacity, @val: 1){
@param : @val;
}
opacity : 1;
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