-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path_animation.scss
142 lines (131 loc) · 4.43 KB
/
_animation.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* @author Bilal Cinarli */
/** -------------------------------------------
Animation Related Mixins
------------------------------------------- **/
/**
* CSS Animation
*
* Outputs CSS3 animation code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation
* Formal syntax: <single-animation-name> || <time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state>
* current spec, webkit browsers need prefixing
*/
@mixin animation($content...){
@include prefixer(animation, $content, webkit);
}
/**
* CSS Animation Delay
*
* Outputs CSS3 animation-delay code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay
* Formal syntax: <time>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-delay($content...){
@include prefixer(animation-delay, $content, webkit);
}
/**
* CSS Animation Direction
*
* Outputs CSS3 animation-direction code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction
* Formal syntax: <single-animation-direction>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-direction($content...){
@include prefixer(animation-direction, $content, webkit);
}
/**
* CSS Animation Duration
*
* Outputs CSS3 animation-duration code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration
* Formal syntax: <time>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-duration($content...){
@include prefixer(animation-duration, $content, webkit);
}
/**
* CSS Animation Fill Mode
*
* Outputs CSS3 animation-fill-mode code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode
* Formal syntax: <single-animation-fill-mode>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-fill-mode($content...){
@include prefixer(animation-fill-mode, $content, webkit);
}
/**
* CSS Animation Iteration Count
*
* Outputs CSS3 animation-iteration-count code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
* Formal syntax: <single-animation-iteration-count>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-iteration-count($content...){
@include prefixer(animation-iteration-count, $content, webkit);
}
/**
* CSS Animation Name
*
* Outputs CSS3 animation-name code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-name
* Formal syntax: <single-animation-name>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-name($content...){
@include prefixer(animation-name, $content, webkit);
}
/**
* CSS Animation Play State
*
* Outputs CSS3 animation-play-state code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-play-state
* Formal syntax: <single-animation-play-state>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-play-state($content...){
@include prefixer(animation-play-state, $content, webkit);
}
/**
* CSS Animation Timing Function
*
* Outputs CSS3 animation-timing-function code with defined prefixes
* http://caniuse.com/#search=css3%20animation
* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
* Formal syntax: <single-animation-timing-function>#
* current spec, webkit browsers need prefixing
*/
@mixin animation-timing-function($content...){
@include prefixer(animation-timing-function, $content, webkit);
}
/**
* CSS Keyframes
*
* Outputs CSS3 keyframes code with defined prefixes
* http://caniuse.com/#search=keyframes
* https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes
* @keyframes <identifier> {
* [ [ from | to | <percentage> ] [, from | to | <percentage> ]* block ]*
* }
* current spec, webkit browsers need prefixing
*/
@mixin keyframes($animation-name){
@-webkit-keyframes #{$animation-name} {
@content;
}
@keyframes #{$animation-name} {
@content;
}
}