animate 0.1.alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +191 -0
- data/lib/animate.rb +9 -0
- data/stylesheets/_animate.scss +40 -0
- data/stylesheets/_helpers.scss +37 -0
- data/stylesheets/animate/_attention.scss +32 -0
- data/stylesheets/animate/_bounce.scss +63 -0
- data/stylesheets/animate/_fade.scss +52 -0
- data/stylesheets/animate/_flip.scss +83 -0
- data/stylesheets/animate/_lightSpeed.scss +16 -0
- data/stylesheets/animate/_roll.scss +16 -0
- data/stylesheets/animate/_rotate.scss +37 -0
- data/stylesheets/animate/_special.scss +13 -0
- data/stylesheets/animate/attention/_flash.scss +24 -0
- data/stylesheets/animate/attention/_pulse.scss +18 -0
- data/stylesheets/animate/attention/_shake.scss +43 -0
- data/stylesheets/animate/attention/_swing.scss +29 -0
- data/stylesheets/animate/attention/_tada.scss +41 -0
- data/stylesheets/animate/attention/_wiggle.scss +42 -0
- data/stylesheets/animate/attention/_wobble.scss +30 -0
- data/stylesheets/animate/bounce/_bounceIn.scss +119 -0
- data/stylesheets/animate/bounce/_bounceOut.scss +107 -0
- data/stylesheets/animate/fade/_fadeIn.scss +159 -0
- data/stylesheets/animate/fade/_fadeOut.scss +159 -0
- data/stylesheets/animate/flip/_flipIn.scss +58 -0
- data/stylesheets/animate/flip/_flipOut.scss +46 -0
- data/stylesheets/animate/lightSpeed/_lightSpeedIn.scss +25 -0
- data/stylesheets/animate/lightSpeed/_lightSpeedOut.scss +17 -0
- data/stylesheets/animate/roll/_rollIn.scss +17 -0
- data/stylesheets/animate/roll/_rollOut.scss +16 -0
- data/stylesheets/animate/rotate/_rotateIn.scss +159 -0
- data/stylesheets/animate/rotate/_rotateOut.scss +159 -0
- data/stylesheets/animate/special/_hinge.scss +38 -0
- metadata +134 -0
@@ -0,0 +1,159 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// fadeIn
|
3
|
+
|
4
|
+
@mixin animate-fadeIn($class: $default-animation-class-mode) {
|
5
|
+
$name: fadeIn;
|
6
|
+
@include keyframes($name) {
|
7
|
+
0% {
|
8
|
+
opacity: 0;
|
9
|
+
}
|
10
|
+
100% {
|
11
|
+
opacity: 1;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
@include animation-class($name, $class) {}
|
15
|
+
}
|
16
|
+
|
17
|
+
// ---------------------------------------------------------------------------
|
18
|
+
// fadeInUp
|
19
|
+
|
20
|
+
@mixin animate-fadeInUp($class: $default-animation-class-mode) {
|
21
|
+
$name: fadeInUp;
|
22
|
+
@include keyframes($name) {
|
23
|
+
0% {
|
24
|
+
@include translateY(20px);
|
25
|
+
opacity: 0;
|
26
|
+
}
|
27
|
+
100% {
|
28
|
+
@include translateY(0);
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
@include animation-class($name, $class) {}
|
33
|
+
}
|
34
|
+
|
35
|
+
// ---------------------------------------------------------------------------
|
36
|
+
// fadeInDown
|
37
|
+
|
38
|
+
@mixin animate-fadeInDown($class: $default-animation-class-mode) {
|
39
|
+
$name: fadeInDown;
|
40
|
+
@include keyframes($name) {
|
41
|
+
0% {
|
42
|
+
@include translateY(-20px);
|
43
|
+
opacity: 0;
|
44
|
+
}
|
45
|
+
100% {
|
46
|
+
@include translateY(0);
|
47
|
+
opacity: 1;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@include animation-class($name, $class) {}
|
51
|
+
}
|
52
|
+
|
53
|
+
// ---------------------------------------------------------------------------
|
54
|
+
// fadeInRight
|
55
|
+
|
56
|
+
@mixin animate-fadeInRight($class: $default-animation-class-mode) {
|
57
|
+
$name: fadeInRight;
|
58
|
+
@include keyframes($name) {
|
59
|
+
0% {
|
60
|
+
@include translateX(20px);
|
61
|
+
opacity: 0;
|
62
|
+
}
|
63
|
+
100% {
|
64
|
+
@include translateX(0);
|
65
|
+
opacity: 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
@include animation-class($name, $class) {}
|
69
|
+
}
|
70
|
+
|
71
|
+
// ---------------------------------------------------------------------------
|
72
|
+
// fadeInLeft
|
73
|
+
|
74
|
+
@mixin animate-fadeInLeft($class: $default-animation-class-mode) {
|
75
|
+
$name: fadeInLeft;
|
76
|
+
@include keyframes($name) {
|
77
|
+
0% {
|
78
|
+
@include translateX(-20px);
|
79
|
+
opacity: 0;
|
80
|
+
}
|
81
|
+
100% {
|
82
|
+
@include translateX(0);
|
83
|
+
opacity: 1;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
@include animation-class($name, $class) {}
|
87
|
+
}
|
88
|
+
|
89
|
+
// ---------------------------------------------------------------------------
|
90
|
+
// fadeInUpBig
|
91
|
+
|
92
|
+
@mixin animate-fadeInUpBig($class: $default-animation-class-mode) {
|
93
|
+
$name: fadeInUpBig;
|
94
|
+
@include keyframes($name) {
|
95
|
+
0% {
|
96
|
+
@include translateY(2000px);
|
97
|
+
opacity: 0;
|
98
|
+
}
|
99
|
+
100% {
|
100
|
+
@include translateY(0);
|
101
|
+
opacity: 1;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
@include animation-class($name, $class) {}
|
105
|
+
}
|
106
|
+
|
107
|
+
// ---------------------------------------------------------------------------
|
108
|
+
// fadeInDownBig
|
109
|
+
|
110
|
+
@mixin animate-fadeInDownBig($class: $default-animation-class-mode) {
|
111
|
+
$name: fadeInDownBig;
|
112
|
+
@include keyframes($name) {
|
113
|
+
0% {
|
114
|
+
opacity: 0;
|
115
|
+
@include translateY(-2000px);
|
116
|
+
}
|
117
|
+
100% {
|
118
|
+
opacity: 1;
|
119
|
+
@include translateY(0);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
@include animation-class($name, $class) {}
|
123
|
+
}
|
124
|
+
|
125
|
+
// ---------------------------------------------------------------------------
|
126
|
+
// fadeInRightBig
|
127
|
+
|
128
|
+
@mixin animate-fadeInRightBig($class: $default-animation-class-mode) {
|
129
|
+
$name: fadeInRightBig;
|
130
|
+
@include keyframes($name) {
|
131
|
+
0% {
|
132
|
+
opacity: 0;
|
133
|
+
@include translateX(2000px);
|
134
|
+
}
|
135
|
+
100% {
|
136
|
+
opacity: 1;
|
137
|
+
@include translateX(0);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
@include animation-class($name, $class) {}
|
141
|
+
}
|
142
|
+
|
143
|
+
// ---------------------------------------------------------------------------
|
144
|
+
// fadeInLeftBig
|
145
|
+
|
146
|
+
@mixin animate-fadeInLeftBig($class: $default-animation-class-mode) {
|
147
|
+
$name: fadeInLeftBig;
|
148
|
+
@include keyframes($name) {
|
149
|
+
0% {
|
150
|
+
opacity: 0;
|
151
|
+
@include translateX(-2000px);
|
152
|
+
}
|
153
|
+
100% {
|
154
|
+
opacity: 1;
|
155
|
+
@include translateX(0);
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@include animation-class($name, $class) {}
|
159
|
+
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// fadeOut
|
3
|
+
|
4
|
+
@mixin animate-fadeOut($class: $default-animation-class-mode) {
|
5
|
+
$name: fadeOut;
|
6
|
+
@include keyframes($name) {
|
7
|
+
0% {
|
8
|
+
opacity: 1;
|
9
|
+
}
|
10
|
+
100% {
|
11
|
+
opacity: 0;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
@include animation-class($name, $class) {}
|
15
|
+
}
|
16
|
+
|
17
|
+
// ---------------------------------------------------------------------------
|
18
|
+
// fadeOutUp
|
19
|
+
|
20
|
+
@mixin animate-fadeOutUp($class: $default-animation-class-mode) {
|
21
|
+
$name: fadeOutUp;
|
22
|
+
@include keyframes($name) {
|
23
|
+
0% {
|
24
|
+
@include translateY(0);
|
25
|
+
opacity: 1;
|
26
|
+
}
|
27
|
+
100% {
|
28
|
+
@include translateY(-20px);
|
29
|
+
opacity: 0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
@include animation-class($name, $class) {}
|
33
|
+
}
|
34
|
+
|
35
|
+
// ---------------------------------------------------------------------------
|
36
|
+
// fadeOutDown
|
37
|
+
|
38
|
+
@mixin animate-fadeOutDown($class: $default-animation-class-mode) {
|
39
|
+
$name: fadeOutDown;
|
40
|
+
@include keyframes($name) {
|
41
|
+
0% {
|
42
|
+
@include translateY(0);
|
43
|
+
opacity: 1;
|
44
|
+
}
|
45
|
+
100% {
|
46
|
+
@include translateY(20px);
|
47
|
+
opacity: 0;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@include animation-class($name, $class) {}
|
51
|
+
}
|
52
|
+
|
53
|
+
// ---------------------------------------------------------------------------
|
54
|
+
// fadeOutRight
|
55
|
+
|
56
|
+
@mixin animate-fadeOutRight($class: $default-animation-class-mode) {
|
57
|
+
$name: fadeOutRight;
|
58
|
+
@include keyframes($name) {
|
59
|
+
0% {
|
60
|
+
@include translateX(0);
|
61
|
+
opacity: 1;
|
62
|
+
}
|
63
|
+
100% {
|
64
|
+
@include translateX(20px);
|
65
|
+
opacity: 0;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
@include animation-class($name, $class) {}
|
69
|
+
}
|
70
|
+
|
71
|
+
// ---------------------------------------------------------------------------
|
72
|
+
// fadeOutLeft
|
73
|
+
|
74
|
+
@mixin animate-fadeOutLeft($class: $default-animation-class-mode) {
|
75
|
+
$name: fadeOutLeft;
|
76
|
+
@include keyframes($name) {
|
77
|
+
0% {
|
78
|
+
@include translateX(0);
|
79
|
+
opacity: 1;
|
80
|
+
}
|
81
|
+
100% {
|
82
|
+
@include translateX(-20px);
|
83
|
+
opacity: 0;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
@include animation-class($name, $class) {}
|
87
|
+
}
|
88
|
+
|
89
|
+
// ---------------------------------------------------------------------------
|
90
|
+
// fadeOutUpBig
|
91
|
+
|
92
|
+
@mixin animate-fadeOutUpBig($class: $default-animation-class-mode) {
|
93
|
+
$name: fadeOutUpBig;
|
94
|
+
@include keyframes($name) {
|
95
|
+
0% {
|
96
|
+
@include translateY(0);
|
97
|
+
opacity: 1;
|
98
|
+
}
|
99
|
+
100% {
|
100
|
+
@include translateY(-2000px);
|
101
|
+
opacity: 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
@include animation-class($name, $class) {}
|
105
|
+
}
|
106
|
+
|
107
|
+
// ---------------------------------------------------------------------------
|
108
|
+
// fadeOutDownBig
|
109
|
+
|
110
|
+
@mixin animate-fadeOutDownBig($class: $default-animation-class-mode) {
|
111
|
+
$name: fadeOutDownBig;
|
112
|
+
@include keyframes($name) {
|
113
|
+
0% {
|
114
|
+
opacity: 1;
|
115
|
+
@include translateY(0);
|
116
|
+
}
|
117
|
+
100% {
|
118
|
+
opacity: 0;
|
119
|
+
@include translateY(2000px);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
@include animation-class($name, $class) {}
|
123
|
+
}
|
124
|
+
|
125
|
+
// ---------------------------------------------------------------------------
|
126
|
+
// fadeOutRightBig
|
127
|
+
|
128
|
+
@mixin animate-fadeOutRightBig($class: $default-animation-class-mode) {
|
129
|
+
$name: fadeOutRightBig;
|
130
|
+
@include keyframes($name) {
|
131
|
+
0% {
|
132
|
+
opacity: 1;
|
133
|
+
@include translateX(0);
|
134
|
+
}
|
135
|
+
100% {
|
136
|
+
opacity: 0;
|
137
|
+
@include translateX(2000px);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
@include animation-class($name, $class) {}
|
141
|
+
}
|
142
|
+
|
143
|
+
// ---------------------------------------------------------------------------
|
144
|
+
// fadeOutLeftBig
|
145
|
+
|
146
|
+
@mixin animate-fadeOutLeftBig($class: $default-animation-class-mode) {
|
147
|
+
$name: fadeOutLeftBig;
|
148
|
+
@include keyframes($name) {
|
149
|
+
0% {
|
150
|
+
opacity: 1;
|
151
|
+
@include translateX(0);
|
152
|
+
}
|
153
|
+
100% {
|
154
|
+
opacity: 0;
|
155
|
+
@include translateX(-2000px);
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@include animation-class($name, $class) {}
|
159
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// flipIn [ x | y | all ]
|
3
|
+
|
4
|
+
@mixin animate-flipIn($sub: all, $class: $default-animation-class-mode) {
|
5
|
+
$sub : compact($sub);
|
6
|
+
$x : yepnope($sub, all x);
|
7
|
+
$y : yepnope($sub, all y);
|
8
|
+
@if $x { @include animate-flipInX (all, $class); }
|
9
|
+
@if $y { @include animate-flipInY (all, $class); }
|
10
|
+
}
|
11
|
+
|
12
|
+
// ---------------------------------------------------------------------------
|
13
|
+
// flipInX
|
14
|
+
|
15
|
+
@mixin animate-flipInX($class: $default-animation-class-mode) {
|
16
|
+
$name: flipInX;
|
17
|
+
@include keyframes($name) {
|
18
|
+
0% {
|
19
|
+
@include transform(perspective(400px) rotateX(90deg));
|
20
|
+
@include opacity(0);
|
21
|
+
}
|
22
|
+
40% {
|
23
|
+
@include transform(perspective(400px) rotateX(-10deg));
|
24
|
+
}
|
25
|
+
70% {
|
26
|
+
@include transform(perspective(400px) rotateX(10deg));
|
27
|
+
}
|
28
|
+
100% {
|
29
|
+
@include transform(perspective(400px) rotateX(0deg));
|
30
|
+
@include opacity(1);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
@include flip-class($name, $class);
|
34
|
+
}
|
35
|
+
|
36
|
+
// ---------------------------------------------------------------------------
|
37
|
+
// flipInY
|
38
|
+
|
39
|
+
@mixin animate-flipInY($class: $default-animation-class-mode) {
|
40
|
+
$name: flipInY;
|
41
|
+
@include keyframes($name) {
|
42
|
+
0% {
|
43
|
+
@include transform(perspective(400px) rotateY(90deg));
|
44
|
+
@include opacity(0);
|
45
|
+
}
|
46
|
+
40% {
|
47
|
+
@include transform(perspective(400px) rotateY(-10deg));
|
48
|
+
}
|
49
|
+
70% {
|
50
|
+
@include transform(perspective(400px) rotateY(10deg));
|
51
|
+
}
|
52
|
+
100% {
|
53
|
+
@include transform(perspective(400px) rotateY(0deg));
|
54
|
+
@include opacity(1);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
@include flip-class($name, $class);
|
58
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// flipOut [ x | y | all ]
|
3
|
+
|
4
|
+
@mixin animate-flipOut($sub: all, $class: $default-animation-class-mode) {
|
5
|
+
$sub : compact($sub);
|
6
|
+
$x : yepnope($sub, all x);
|
7
|
+
$y : yepnope($sub, all y);
|
8
|
+
@if $x { @include animate-flipOutX (all, $class); }
|
9
|
+
@if $y { @include animate-flipOutY (all, $class); }
|
10
|
+
}
|
11
|
+
|
12
|
+
// ---------------------------------------------------------------------------
|
13
|
+
// flipOutX
|
14
|
+
|
15
|
+
@mixin animate-flipOutX($class: $default-animation-class-mode) {
|
16
|
+
$name: flipOutX;
|
17
|
+
@include keyframes($name) {
|
18
|
+
0% {
|
19
|
+
@include transform(perspective(400px) rotateX(0deg));
|
20
|
+
@include opacity(1);
|
21
|
+
}
|
22
|
+
100% {
|
23
|
+
@include transform(perspective(400px) rotateX(90deg));
|
24
|
+
@include opacity(0);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
@include flip-class($name, $class);
|
28
|
+
}
|
29
|
+
|
30
|
+
// ---------------------------------------------------------------------------
|
31
|
+
// flipOutY
|
32
|
+
|
33
|
+
@mixin animate-flipOutY($class: $default-animation-class-mode) {
|
34
|
+
$name: flipOutY;
|
35
|
+
@include keyframes($name) {
|
36
|
+
0% {
|
37
|
+
@include transform(perspective(400px) rotateY(0deg));
|
38
|
+
@include opacity(1);
|
39
|
+
}
|
40
|
+
100% {
|
41
|
+
@include transform(perspective(400px) rotateY(90deg));
|
42
|
+
@include opacity(0);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
@include flip-class($name, $class);
|
46
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// lightSpeedIn
|
3
|
+
|
4
|
+
@mixin animate-lightSpeedIn($class: $default-animation-class-mode) {
|
5
|
+
$name: lightSpeedIn;
|
6
|
+
@include keyframes($name) {
|
7
|
+
0% {
|
8
|
+
@include transform(translateX(100%) skewX(-30deg));
|
9
|
+
@include opacity(0);
|
10
|
+
}
|
11
|
+
60% {
|
12
|
+
@include transform(translateX(-20%) skewX(30deg));
|
13
|
+
@include opacity(1);
|
14
|
+
}
|
15
|
+
80% {
|
16
|
+
@include transform(translateX(0%) skewX(-15deg));
|
17
|
+
@include opacity(1);
|
18
|
+
}
|
19
|
+
100% {
|
20
|
+
@include transform(translateX(0%) skewX(0deg));
|
21
|
+
@include opacity(1);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
@include animation-class($name, $class) {}
|
25
|
+
}
|