| 1 |
// http://www.w3.org/TR/css3-animations/#the-animation-name-property- |
| 2 |
// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties. |
| 3 |
|
| 4 |
// Official animation shorthand property. |
| 5 |
@mixin animation ($animations...) { |
| 6 |
@include prefixer(animation, $animations, webkit moz spec); |
| 7 |
} |
| 8 |
|
| 9 |
// Individual Animation Properties |
| 10 |
@mixin animation-name ($names...) { |
| 11 |
@include prefixer(animation-name, $names, webkit moz spec); |
| 12 |
} |
| 13 |
|
| 14 |
|
| 15 |
@mixin animation-duration ($times...) { |
| 16 |
@include prefixer(animation-duration, $times, webkit moz spec); |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
@mixin animation-timing-function ($motions...) { |
| 21 |
// ease | linear | ease-in | ease-out | ease-in-out |
| 22 |
@include prefixer(animation-timing-function, $motions, webkit moz spec); |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
@mixin animation-iteration-count ($values...) { |
| 27 |
// infinite | <number> |
| 28 |
@include prefixer(animation-iteration-count, $values, webkit moz spec); |
| 29 |
} |
| 30 |
|
| 31 |
|
| 32 |
@mixin animation-direction ($directions...) { |
| 33 |
// normal | alternate |
| 34 |
@include prefixer(animation-direction, $directions, webkit moz spec); |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
@mixin animation-play-state ($states...) { |
| 39 |
// running | paused |
| 40 |
@include prefixer(animation-play-state, $states, webkit moz spec); |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
@mixin animation-delay ($times...) { |
| 45 |
@include prefixer(animation-delay, $times, webkit moz spec); |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
@mixin animation-fill-mode ($modes...) { |
| 50 |
// none | forwards | backwards | both |
| 51 |
@include prefixer(animation-fill-mode, $modes, webkit moz spec); |
| 52 |
} |