我有这个 Less mixin -
.css3-transitions(@property: color, @duration: 0.3s, @transition: ease-in) {
-webkit-transition:@property @duration @transition;
-moz-transition:@property @duration @transition;
transition:@property @duration @transition;
}
我要在一个类上使用,但排除缓动并将其应用于不透明度,所以我这样做..
.myClass{
.css3-transition(opacity);
}
但也插入了缓和。例如 CSS 结果是这样的......
-webkit-transition: opacity 0.3s ease-in;
-moz-transition: opacity 0.3s ease-in;
transition: opacity 0.3s ease-in;
我将如何排除宽松?