LESS CSS mixin for CSS transitions

LESS CSS
// CSS

What it does

Declare a LESS mixin for a simple transition, which can then be easily applied throughout your stylesheet.

The Code

// 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;
}

How To Use It

Paste this snippet into your LESS CSS stylesheet.

Menu