| 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 |
@mixin animation($animations...) { |
| 5 |
@include _bourbon-deprecate-for-prefixing("animation"); |
| 6 |
|
| 7 |
@include prefixer(animation, $animations, webkit moz spec); |
| 8 |
} |
| 9 |
|
| 10 |
@mixin animation-name($names...) { |
| 11 |
@include _bourbon-deprecate-for-prefixing("animation-name"); |
| 12 |
|
| 13 |
@include prefixer(animation-name, $names, webkit moz spec); |
| 14 |
} |
| 15 |
|
| 16 |
@mixin animation-duration($times...) { |
| 17 |
@include _bourbon-deprecate-for-prefixing("animation-duration"); |
| 18 |
|
| 19 |
@include prefixer(animation-duration, $times, webkit moz spec); |
| 20 |
} |
| 21 |
|
| 22 |
@mixin animation-timing-function($motions...) { |
| 23 |
@include _bourbon-deprecate-for-prefixing("animation-timing-function"); |
| 24 |
|
| 25 |
// ease | linear | ease-in | ease-out | ease-in-out |
| 26 |
@include prefixer(animation-timing-function, $motions, webkit moz spec); |
| 27 |
} |
| 28 |
|
| 29 |
@mixin animation-iteration-count($values...) { |
| 30 |
@include _bourbon-deprecate-for-prefixing("animation-iteration-count"); |
| 31 |
|
| 32 |
// infinite | <number> |
| 33 |
@include prefixer(animation-iteration-count, $values, webkit moz spec); |
| 34 |
} |
| 35 |
|
| 36 |
@mixin animation-direction($directions...) { |
| 37 |
@include _bourbon-deprecate-for-prefixing("animation-direction"); |
| 38 |
|
| 39 |
// normal | alternate |
| 40 |
@include prefixer(animation-direction, $directions, webkit moz spec); |
| 41 |
} |
| 42 |
|
| 43 |
@mixin animation-play-state($states...) { |
| 44 |
@include _bourbon-deprecate-for-prefixing("animation-play-state"); |
| 45 |
|
| 46 |
// running | paused |
| 47 |
@include prefixer(animation-play-state, $states, webkit moz spec); |
| 48 |
} |
| 49 |
|
| 50 |
@mixin animation-delay($times...) { |
| 51 |
@include _bourbon-deprecate-for-prefixing("animation-delay"); |
| 52 |
|
| 53 |
@include prefixer(animation-delay, $times, webkit moz spec); |
| 54 |
} |
| 55 |
|
| 56 |
@mixin animation-fill-mode($modes...) { |
| 57 |
@include _bourbon-deprecate-for-prefixing("animation-fill-mode"); |
| 58 |
|
| 59 |
// none | forwards | backwards | both |
| 60 |
@include prefixer(animation-fill-mode, $modes, webkit moz spec); |
| 61 |
} |