-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
I'm using the following code.
.transitions(...){
@arg : ~`"@{arguments}".replace(/[\[\]]*/g, '')`;
-webkit-transition: @arg;
-moz-transition: @arg;
-ms-transition: @arg;
-o-transition: @arg;
transition: @arg;
}
.transitions(opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;);
And it produces the following result.
-webkit-transition: opacity 0s ease-in 0s, max-height 1s linear, margin-bottom 0s linear;
-moz-transition: opacity 0s ease-in 0s, max-height 1s linear, margin-bottom 0s linear;
-ms-transition: opacity 0s ease-in 0s, max-height 1s linear, margin-bottom 0s linear;
-o-transition: opacity 0s ease-in 0s, max-height 1s linear, margin-bottom 0s linear;
transition: opacity 0s ease-in 0s, max-height 1s linear, margin-bottom 0s linear;
As you can see 0.3, 0.4 get rounded to 0 and 0.6 gets rounded to 1
Metadata
Metadata
Assignees
Labels
No labels