Skip to content

Commit d69dc6f

Browse files
committed
improve mixin for '.transition'
1 parent 80d3770 commit d69dc6f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Accepts: `@count` (defaulting to `2`)
9393

9494
Sets transition to properties of an element.
9595

96-
Accepts: `@seconds` (defaulting to `1s`)
96+
Accepts: Duration, a property or any number of properties
9797

9898
#### `.animation`
9999

less/_misc.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
column-count: @count;
55
}
66

7-
.transition(@seconds: 1s) {
8-
-moz-transition: @seconds;
9-
-webkit-transition: @seconds;
10-
-o-transition: @seconds;
11-
transition: @seconds;
7+
.transition(...) {
8+
-moz-transition: @arguments;
9+
-webkit-transition: @arguments;
10+
-o-transition: @arguments;
11+
transition: @arguments;
1212
}
1313

1414
.animation(@props) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "effortless-css",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"description": "A collection of frequently used {Less} CSS mixins",
55
"main": "less/all.less",
66
"repository": {

0 commit comments

Comments
 (0)