Dynamic property names .less

Is it possible to use less variables in property names. Example mixing class it will be clear that in the end want

.my_attr(@param: opacity @val: 1){
@param : @val;

This example will assign the value @val to the variable @param.

Is it possible to do in less that the result of this example with the default settings brought?

opacity : 1;

Ie has substituted the values of variables everywhere.
October 8th 19 at 01:27
2 answers
October 8th 19 at 01:29
October 8th 19 at 01:31
Thank you, another would be to force the IDE not to say that such a syntax

Find more questions by tags CSSLess