UNPKG

2.81 kBSCSSView Raw
1@charset "UTF-8";
2
3// animate mixins
4// --------------------------------------------------
5
6@mixin count($count: 1) {
7 -webkit-animation-iteration-count: $count;
8 -moz-animation-iteration-count: $count;
9 -ms-animation-iteration-count: $count;
10 -o-animation-iteration-count: $count;
11 animation-iteration-count: $count;
12}
13
14@mixin duration($duration: 1s) {
15 -webkit-animation-duration: $duration;
16 -moz-animation-duration: $duration;
17 -ms-animation-duration: $duration;
18 -o-animation-duration: $duration;
19 animation-duration: $duration;
20}
21
22@mixin delay($delay: .2s) {
23 -webkit-animation-delay: $delay;
24 -moz-animation-delay: $delay;
25 -ms-animation-delay: $delay;
26 -o-animation-delay: $delay;
27 animation-delay: $delay;
28}
29
30@mixin function($function: ease) {
31 -webkit-animation-timing-function: $function;
32 -moz-animation-timing-function: $function;
33 -ms-animation-timing-function: $function;
34 -o-animation-timing-function: $function;
35 animation-timing-function: $function;
36}
37
38@mixin fill-mode($fill: both) {
39 -webkit-animation-fill-mode: $fill;
40 -moz-animation-fill-mode: $fill;
41 -ms-animation-fill-mode: $fill;
42 -o-animation-fill-mode: $fill;
43 animation-fill-mode: $fill;
44}
45
46@mixin visibility($visibility: hidden) {
47 -webkit-backface-visibility: $visibility;
48 -moz-backface-visibility: $visibility;
49 -ms-backface-visibility: $visibility;
50 -o-backface-visibility: $visibility;
51 backface-visibility: $visibility;
52}
53
54@mixin transform($property) {
55 -webkit-transform: $property;
56 -moz-transform: $property;
57 -ms-transform: $property;
58 -o-transform: $property;
59 transform: $property;
60}
61
62@mixin transform-origin($transform-origin: center center) {
63 -webkit-transform-origin: $transform-origin;
64 -moz-transform-origin: $transform-origin;
65 -ms-transform-origin: $transform-origin;
66 -o-transform-origin: $transform-origin;
67 transform-origin: $transform-origin;
68}
69
70@mixin transform-style($transform-style: flat) {
71 -webkit-transform-style: $transform-style;
72 -moz-transform-style: $transform-style;
73 -o-transform-style: $transform-style;
74 transform-style: $transform-style;
75}
76
77@mixin animation-name($animation-name) {
78 -webkit-animation-name: $animation-name;
79 -moz-animation-name: $animation-name;
80 -ms-animation-name: $animation-name;
81 -o-animation-name: $animation-name;
82 animation-name: $animation-name;
83}
84
85@mixin keyframes($animation-name) {
86 @-webkit-keyframes #{$animation-name} {
87 @content;
88 }
89
90 @-moz-keyframes #{$animation-name} {
91 @content;
92 }
93
94 @-ms-keyframes #{$animation-name} {
95 @content;
96 }
97
98 @-o-keyframes #{$animation-name} {
99 @content;
100 }
101
102 @keyframes #{$animation-name} {
103 @content;
104 }
105}