Using transition properties through Less

Goud.Kv
Posted by Goud.Kv under CSS 3 category on | Points: 40 | Views : 1224
Code below explains you how to use the transition properties through Less-Css.

@property: all;
@duration: 0.5s;
@effect: linear;
@Bcolor: grey;
@val: @property @duration @effect;

.transition:hover
{
background-color:@Bcolor;
transition: @val;
}


'.transition' is a class selector used for the section. Above code gets you the transition property on hover of that section.

Comments or Responses

Login to post response