Declare a LESS mixin for a simple transition, which can then be easily applied throughout your stylesheet.
LESS CSS mixin for CSS transitions
LESS CSS
// CSS
// Declare the mixin for the CSS transition
.trans {
transition:.2s all linear;
-webkit-transition:.2s all linear;
-moz-transition:.2s all linear;
-o-transition:.2s all linear;
}
// How to use it for a class
.myElement {
.trans;
}
Paste this snippet into your LESS CSS stylesheet.