Can I define a LESS mixin to generate a transition-property with a variable number of parameters?
问题 I'm introducing LESS to a large web app project to simplify my CSS. I've got a few CSS rules which apply transitions to a varying number of properties, for example: .movable { transition-property: top, left; transition-duration: 0.2s; transition-timing-function: ease; } .fadeAndStretchable { transition-property: opacity, width, height, margin; transition-duration: 1.5s; transition-timing-function: ease-out; } (Note: I've omitted -webkit , -moz and -o properties here for brevity: in reality