Skip to content

Commit

Permalink
(less) Merge pull request twbs#11326 from ZDroid/animations
Browse files Browse the repository at this point in the history
Add `.animation-*()` mixins
  • Loading branch information
mdo committed Dec 15, 2013
2 parents 0d3eb74 + 2b9df92 commit a140566
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,30 @@
-webkit-animation: @animation;
animation: @animation;
}
.animation-name(@name) {
-webkit-animation-name: @name;
animation-name: @name;
}
.animation-duration(@duration) {
-webkit-animation-duration: @duration;
animation-duration: @duration;
}
.animation-timing-function(@timing-function) {
-webkit-animation-timing-function: @timing-function;
animation-timing-function: @timing-function;
}
.animation-delay(@delay) {
-webkit-animation-delay: @delay;
animation-delay: @delay;
}
.animation-iteration-count(@iteration-count) {
-webkit-animation-iteration-count: @iteration-count;
animation-iteration-count: @iteration-count;
}
.animation-direction(@direction) {
-webkit-animation-direction: @direction;
animation-direction: @direction;
}

// Backface visibility
// Prevent browsers from flickering when using CSS 3D transforms.
Expand Down

0 comments on commit a140566

Please sign in to comment.