rhet-butler 0.5.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/default-configuration/assets/javascript/keyboard-nav.js +91 -0
- data/default-configuration/assets/javascript/rhet-present.js +855 -0
- data/default-configuration/assets/javascript/rhet-present.min.js +55 -0
- data/default-configuration/assets/stylesheets/_animate-helpers.scss +41 -0
- data/default-configuration/assets/stylesheets/animate/_attention.scss +36 -0
- data/default-configuration/assets/stylesheets/animate/_bounce.scss +71 -0
- data/default-configuration/assets/stylesheets/animate/_fade.scss +56 -0
- data/default-configuration/assets/stylesheets/animate/_flip.scss +98 -0
- data/default-configuration/assets/stylesheets/animate/_lightSpeed.scss +20 -0
- data/default-configuration/assets/stylesheets/animate/_roll.scss +20 -0
- data/default-configuration/assets/stylesheets/animate/_rotate.scss +40 -0
- data/default-configuration/assets/stylesheets/animate/_special.scss +17 -0
- data/default-configuration/assets/stylesheets/animate/_windblown.sass +17 -0
- data/default-configuration/assets/stylesheets/animate/attention/._pulse.scss.swp +0 -0
- data/default-configuration/assets/stylesheets/animate/attention/_flash.scss +34 -0
- data/default-configuration/assets/stylesheets/animate/attention/_pulse.scss +28 -0
- data/default-configuration/assets/stylesheets/animate/attention/_shake.scss +53 -0
- data/default-configuration/assets/stylesheets/animate/attention/_swing.scss +40 -0
- data/default-configuration/assets/stylesheets/animate/attention/_tada.scss +51 -0
- data/default-configuration/assets/stylesheets/animate/attention/_wiggle.scss +52 -0
- data/default-configuration/assets/stylesheets/animate/attention/_wobble.scss +41 -0
- data/default-configuration/assets/stylesheets/animate/bounce/_bounceIn.scss +151 -0
- data/default-configuration/assets/stylesheets/animate/bounce/_bounceOut.scss +139 -0
- data/default-configuration/assets/stylesheets/animate/fade/_fadeIn.sass +139 -0
- data/default-configuration/assets/stylesheets/animate/fade/_fadeOut.sass +139 -0
- data/default-configuration/assets/stylesheets/animate/flip/_flipIn.scss +78 -0
- data/default-configuration/assets/stylesheets/animate/flip/_flipOut.scss +66 -0
- data/default-configuration/assets/stylesheets/animate/lightSpeed/_lightSpeedIn.scss +37 -0
- data/default-configuration/assets/stylesheets/animate/lightSpeed/_lightSpeedOut.scss +29 -0
- data/default-configuration/assets/stylesheets/animate/roll/_rollIn.scss +29 -0
- data/default-configuration/assets/stylesheets/animate/roll/_rollOut.scss +28 -0
- data/default-configuration/assets/stylesheets/animate/rotate/_rotateIn.scss +208 -0
- data/default-configuration/assets/stylesheets/animate/rotate/_rotateOut.scss +208 -0
- data/default-configuration/assets/stylesheets/animate/special/_hinge.scss +49 -0
- data/default-configuration/assets/stylesheets/animate/windblown/_windblownIn.sass +28 -0
- data/default-configuration/assets/stylesheets/animate/windblown/_windblownOut.sass +24 -0
- data/default-configuration/assets/stylesheets/font.css +30 -0
- data/default-configuration/assets/stylesheets/highlight/arta.css +158 -0
- data/default-configuration/assets/stylesheets/highlight/ascetic.css +50 -0
- data/default-configuration/assets/stylesheets/highlight/brown_paper.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/brown_papersq.png +0 -0
- data/default-configuration/assets/stylesheets/highlight/dark.css +103 -0
- data/default-configuration/assets/stylesheets/highlight/default.css +135 -0
- data/default-configuration/assets/stylesheets/highlight/far.css +111 -0
- data/default-configuration/assets/stylesheets/highlight/github.css +127 -0
- data/default-configuration/assets/stylesheets/highlight/googlecode.css +144 -0
- data/default-configuration/assets/stylesheets/highlight/idea.css +121 -0
- data/default-configuration/assets/stylesheets/highlight/ir_black.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/magula.css +120 -0
- data/default-configuration/assets/stylesheets/highlight/monokai.css +114 -0
- data/default-configuration/assets/stylesheets/highlight/pojoaque.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/pojoaque.jpg +0 -0
- data/default-configuration/assets/stylesheets/highlight/rainbow.css +114 -0
- data/default-configuration/assets/stylesheets/highlight/school_book.css +111 -0
- data/default-configuration/assets/stylesheets/highlight/school_book.png +0 -0
- data/default-configuration/assets/stylesheets/highlight/solarized_light.css +88 -0
- data/default-configuration/assets/stylesheets/highlight/sunburst.css +158 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-blue.css +52 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-bright.css +51 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-eighties.css +51 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night.css +52 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow.css +49 -0
- data/default-configuration/assets/stylesheets/highlight/vs.css +86 -0
- data/default-configuration/assets/stylesheets/highlight/xcode.css +154 -0
- data/default-configuration/assets/stylesheets/highlight/zenburn.css +114 -0
- data/default-configuration/assets/stylesheets/presenter/rhet.css.sass +160 -0
- data/default-configuration/assets/stylesheets/rhet.css.sass +142 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/arimo/v5/K-bXE71xZHgbUS_UdQjugvesZW2xOQ-xsNqO47m55DA.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9wIh9oxuYcmvOvyh_107lQs.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9zCUrkmwPfdnoTjOU_kXqBI.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJYW_AySPyikQrZReizgrnuw.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/slackey/v3/bJZDrYrGx8atJRHR9DVdqg.ttf +0 -0
- data/default-configuration/common/config.yaml +17 -0
- data/default-configuration/common/templates/group.html.erb +5 -0
- data/default-configuration/common/templates/presentation.html.erb +11 -17
- data/default-configuration/common/templates/presenter-qr.html.erb +3 -3
- data/default-configuration/common/templates/slide.html.erb +3 -0
- data/default-configuration/common/templates/stylesheets.html.erb +1 -1
- data/default-configuration/presenter/templates/live-javascript.html.erb +4 -3
- data/default-configuration/presenter/templates/slide.html.erb +6 -0
- data/default-configuration/presenter/templates/stylesheets.html.erb +1 -1
- data/default-configuration/skels/config.yaml +15 -0
- data/default-configuration/skels/slides.yaml +6 -0
- data/default-configuration/viewer/templates/live-javascript.html.erb +1 -1
- data/lib/rhet-butler/arrangement-finder.rb +71 -0
- data/lib/rhet-butler/command-line.rb +69 -1
- data/lib/rhet-butler/configuration.rb +20 -5
- data/lib/rhet-butler/file-loading.rb +28 -0
- data/lib/rhet-butler/file-manager.rb +42 -22
- data/lib/rhet-butler/filter-resolver.rb +45 -0
- data/lib/rhet-butler/html-generator.rb +24 -4
- data/lib/rhet-butler/include-processor.rb +55 -0
- data/lib/rhet-butler/layout-rule.rb +17 -13
- data/lib/rhet-butler/resource-localizer.rb +22 -0
- data/lib/rhet-butler/sass-functions.rb +40 -0
- data/lib/rhet-butler/slide-arranger.rb +39 -0
- data/lib/rhet-butler/slide-group.rb +56 -21
- data/lib/rhet-butler/slide-includer.rb +5 -2
- data/lib/rhet-butler/slide-loader.rb +16 -332
- data/lib/rhet-butler/slide-processor.rb +27 -0
- data/lib/rhet-butler/slide-renderer.rb +42 -0
- data/lib/rhet-butler/slide-renderers/code.rb +19 -0
- data/lib/rhet-butler/slide-renderers/cues.rb +27 -0
- data/lib/rhet-butler/slide-renderers/textile.rb +14 -0
- data/lib/rhet-butler/slide-rendering.rb +22 -0
- data/lib/rhet-butler/slide-traverser.rb +45 -0
- data/lib/rhet-butler/slide.rb +40 -30
- data/lib/rhet-butler/stasis/css-transform.rb +55 -0
- data/lib/rhet-butler/stasis/document-transform.rb +32 -0
- data/lib/rhet-butler/stasis/html-transform.rb +51 -0
- data/lib/rhet-butler/stasis/http-loader.rb +19 -0
- data/lib/rhet-butler/stasis/identity-transform.rb +18 -0
- data/lib/rhet-butler/stasis/rack-loader.rb +57 -0
- data/lib/rhet-butler/stasis/resource-mapping.rb +55 -0
- data/lib/rhet-butler/stasis/transform-queue.rb +87 -0
- data/lib/rhet-butler/stasis/writer.rb +35 -0
- data/lib/rhet-butler/stasis.rb +18 -0
- data/lib/rhet-butler/static-generator.rb +21 -29
- data/lib/rhet-butler/web/assets-app.rb +24 -8
- data/lib/rhet-butler/web/main-app.rb +17 -8
- data/lib/rhet-butler/web/presentation-app.rb +22 -14
- data/lib/rhet-butler/web/qr-display-app.rb +4 -1
- data/lib/rhet-butler/yaml-schema.rb +5 -4
- data/lib/rhet-butler/yaml-type.rb +24 -1
- data/spec/html-generation.rb +7 -1
- data/spec/presentation-view.rb +33 -8
- data/spec/rhet-butler.rb +0 -13
- data/spec/slide-loader.rb +3 -3
- data/spec/slide-processing.rb +6 -3
- metadata +209 -119
- data/default-configuration/assets/javascript/impress.js +0 -800
- data/default-configuration/assets/stylesheets/presenter/presentation.css +0 -477
- data/lib/rhet-butler.rb +0 -2
@@ -0,0 +1,40 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
@import "compass/css3/transform";
|
6
|
+
|
7
|
+
// ---------------------------------------------------------------------------
|
8
|
+
// swing
|
9
|
+
|
10
|
+
@mixin animate-swing(
|
11
|
+
$class : $default-animation-class-mode,
|
12
|
+
$keyframes : $default-keyframes-output
|
13
|
+
) {
|
14
|
+
$name: swing;
|
15
|
+
@if $keyframes {
|
16
|
+
@include keyframes($name) {
|
17
|
+
20%, 40%, 60%, 80%, 100% {
|
18
|
+
@include transform-origin(top, center);
|
19
|
+
}
|
20
|
+
20% {
|
21
|
+
@include rotate(15deg);
|
22
|
+
}
|
23
|
+
40% {
|
24
|
+
@include rotate(-10deg);
|
25
|
+
}
|
26
|
+
60% {
|
27
|
+
@include rotate(5deg);
|
28
|
+
}
|
29
|
+
80% {
|
30
|
+
@include rotate(-5deg);
|
31
|
+
}
|
32
|
+
100% {
|
33
|
+
@include rotate(0deg);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
@include animation-class($name, $class) {
|
38
|
+
@include transform-origin(top, center);
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// tada
|
8
|
+
|
9
|
+
@mixin animate-tada(
|
10
|
+
$class : $default-animation-class-mode,
|
11
|
+
$keyframes : $default-keyframes-output
|
12
|
+
) {
|
13
|
+
$name: tada;
|
14
|
+
@if $keyframes {
|
15
|
+
@include keyframes($name) {
|
16
|
+
0% {
|
17
|
+
@include scale(1); }
|
18
|
+
10% {
|
19
|
+
@include transform(scale(0.9) rotate(-3deg));
|
20
|
+
}
|
21
|
+
20% {
|
22
|
+
@include transform(scale(0.9) rotate(-3deg));
|
23
|
+
}
|
24
|
+
30% {
|
25
|
+
@include transform(scale(1.1) rotate(3deg));
|
26
|
+
}
|
27
|
+
40% {
|
28
|
+
@include transform(scale(1.1) rotate(-3deg));
|
29
|
+
}
|
30
|
+
50% {
|
31
|
+
@include transform(scale(1.1) rotate(3deg));
|
32
|
+
}
|
33
|
+
60% {
|
34
|
+
@include transform(scale(1.1) rotate(-3deg));
|
35
|
+
}
|
36
|
+
70% {
|
37
|
+
@include transform(scale(1.1) rotate(3deg));
|
38
|
+
}
|
39
|
+
80% {
|
40
|
+
@include transform(scale(1.1) rotate(-3deg));
|
41
|
+
}
|
42
|
+
90% {
|
43
|
+
@include transform(scale(1.1) rotate(3deg));
|
44
|
+
}
|
45
|
+
100% {
|
46
|
+
@include transform(scale(1) rotate(0));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@include animation-class($name, $class) {}
|
51
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// wiggle
|
8
|
+
|
9
|
+
@mixin animate-wiggle(
|
10
|
+
$class : $default-animation-class-mode,
|
11
|
+
$keyframes : $default-keyframes-output
|
12
|
+
) {
|
13
|
+
$name: wiggle;
|
14
|
+
@if $keyframes {
|
15
|
+
@include keyframes($name) {
|
16
|
+
0% {
|
17
|
+
@include skewX(9deg);
|
18
|
+
}
|
19
|
+
10% {
|
20
|
+
@include skewX(-8deg);
|
21
|
+
}
|
22
|
+
20% {
|
23
|
+
@include skewX(7deg);
|
24
|
+
}
|
25
|
+
30% {
|
26
|
+
@include skewX(-6deg);
|
27
|
+
}
|
28
|
+
40% {
|
29
|
+
@include skewX(5deg);
|
30
|
+
}
|
31
|
+
50% {
|
32
|
+
@include skewX(-4deg);
|
33
|
+
}
|
34
|
+
60% {
|
35
|
+
@include skewX(3deg);
|
36
|
+
}
|
37
|
+
70% {
|
38
|
+
@include skewX(-2deg);
|
39
|
+
}
|
40
|
+
80% {
|
41
|
+
@include skewX(1deg);
|
42
|
+
}
|
43
|
+
90% {
|
44
|
+
@include skewX(0deg);
|
45
|
+
}
|
46
|
+
100% {
|
47
|
+
@include skewX(0deg);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
@include animation-class($name, $class) {}
|
52
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
@import "compass/css3/transform";
|
6
|
+
|
7
|
+
// ---------------------------------------------------------------------------
|
8
|
+
// wobble
|
9
|
+
|
10
|
+
@mixin animate-wobble(
|
11
|
+
$class : $default-animation-class-mode,
|
12
|
+
$keyframes : $default-keyframes-output
|
13
|
+
) {
|
14
|
+
$name: wobble;
|
15
|
+
@if $keyframes {
|
16
|
+
@include keyframes($name) {
|
17
|
+
0% {
|
18
|
+
@include translateX(0%);
|
19
|
+
}
|
20
|
+
15% {
|
21
|
+
@include transform(translateX(-25%) rotate(-5deg));
|
22
|
+
}
|
23
|
+
30% {
|
24
|
+
@include transform(translateX(20%) rotate(3deg));
|
25
|
+
}
|
26
|
+
45% {
|
27
|
+
@include transform(translateX(-15%) rotate(-3deg));
|
28
|
+
}
|
29
|
+
60% {
|
30
|
+
@include transform(translateX(10%) rotate(2deg));
|
31
|
+
}
|
32
|
+
75% {
|
33
|
+
@include transform(translateX(-5%) rotate(-1deg));
|
34
|
+
}
|
35
|
+
100% {
|
36
|
+
@include transform(translateX(0%));
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
@include animation-class($name, $class) {}
|
41
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
@import "compass/css3/transform";
|
6
|
+
@import "compass/css3/opacity";
|
7
|
+
|
8
|
+
// ---------------------------------------------------------------------------
|
9
|
+
// bounceIn
|
10
|
+
|
11
|
+
@mixin animate-bounceIn(
|
12
|
+
$class : $default-animation-class-mode,
|
13
|
+
$keyframes : $default-keyframes-output
|
14
|
+
) {
|
15
|
+
$name: bounceIn;
|
16
|
+
@if $keyframes {
|
17
|
+
@include keyframes($name) {
|
18
|
+
0% {
|
19
|
+
opacity: 0;
|
20
|
+
@include scale(0.3);
|
21
|
+
}
|
22
|
+
50% {
|
23
|
+
opacity: 1;
|
24
|
+
@include scale(1.05);
|
25
|
+
}
|
26
|
+
70% {
|
27
|
+
@include scale(0.9);
|
28
|
+
}
|
29
|
+
100% {
|
30
|
+
@include scale(1);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
@include animation-class($name, $class) {}
|
35
|
+
}
|
36
|
+
|
37
|
+
// ---------------------------------------------------------------------------
|
38
|
+
// bounceInDown
|
39
|
+
|
40
|
+
@mixin animate-bounceInDown(
|
41
|
+
$class : $default-animation-class-mode,
|
42
|
+
$keyframes : $default-keyframes-output
|
43
|
+
) {
|
44
|
+
$name: bounceInDown;
|
45
|
+
@if $keyframes {
|
46
|
+
@include keyframes($name) {
|
47
|
+
0% {
|
48
|
+
opacity: 0;
|
49
|
+
@include translateY(-2000px);
|
50
|
+
}
|
51
|
+
60% {
|
52
|
+
opacity: 1;
|
53
|
+
@include translateY(30px);
|
54
|
+
}
|
55
|
+
80% {
|
56
|
+
@include translateY(-10px);
|
57
|
+
}
|
58
|
+
100% {
|
59
|
+
@include translateY(0);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
@include animation-class($name, $class) {}
|
64
|
+
}
|
65
|
+
|
66
|
+
// ---------------------------------------------------------------------------
|
67
|
+
// bounceInUp
|
68
|
+
|
69
|
+
@mixin animate-bounceInUp(
|
70
|
+
$class : $default-animation-class-mode,
|
71
|
+
$keyframes : $default-keyframes-output
|
72
|
+
) {
|
73
|
+
$name: bounceInUp;
|
74
|
+
@if $keyframes {
|
75
|
+
@include keyframes($name) {
|
76
|
+
0% {
|
77
|
+
opacity: 0;
|
78
|
+
@include translateY(2000px);
|
79
|
+
}
|
80
|
+
60% {
|
81
|
+
opacity: 1;
|
82
|
+
@include translateY(-30px);
|
83
|
+
}
|
84
|
+
80% {
|
85
|
+
@include translateY(10px);
|
86
|
+
}
|
87
|
+
100% {
|
88
|
+
@include translateY(0);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
@include animation-class($name, $class) {}
|
93
|
+
}
|
94
|
+
|
95
|
+
// ---------------------------------------------------------------------------
|
96
|
+
// bounceInRight
|
97
|
+
|
98
|
+
@mixin animate-bounceInRight(
|
99
|
+
$class : $default-animation-class-mode,
|
100
|
+
$keyframes : $default-keyframes-output
|
101
|
+
) {
|
102
|
+
$name: bounceInRight;
|
103
|
+
@if $keyframes {
|
104
|
+
@include keyframes($name) {
|
105
|
+
0% {
|
106
|
+
opacity: 0;
|
107
|
+
@include translateX(2000px);
|
108
|
+
}
|
109
|
+
60% {
|
110
|
+
opacity: 1;
|
111
|
+
@include translateX(-30px);
|
112
|
+
}
|
113
|
+
80% {
|
114
|
+
@include translateX(10px);
|
115
|
+
}
|
116
|
+
100% {
|
117
|
+
@include translateX(0);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
@include animation-class($name, $class) {}
|
122
|
+
}
|
123
|
+
|
124
|
+
// ---------------------------------------------------------------------------
|
125
|
+
// bounceInLeft
|
126
|
+
|
127
|
+
@mixin animate-bounceInLeft(
|
128
|
+
$class : $default-animation-class-mode,
|
129
|
+
$keyframes : $default-keyframes-output
|
130
|
+
) {
|
131
|
+
$name: bounceInLeft;
|
132
|
+
@if $keyframes {
|
133
|
+
@include keyframes($name) {
|
134
|
+
0% {
|
135
|
+
opacity: 0;
|
136
|
+
@include translateX(-2000px);
|
137
|
+
}
|
138
|
+
60% {
|
139
|
+
opacity: 1;
|
140
|
+
@include translateX(30px);
|
141
|
+
}
|
142
|
+
80% {
|
143
|
+
@include translateX(-10px);
|
144
|
+
}
|
145
|
+
100% {
|
146
|
+
@include translateX(0);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
@include animation-class($name, $class) {}
|
151
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import "compass/css3/animation";
|
5
|
+
@import "compass/css3/transform";
|
6
|
+
@import "compass/css3/opacity";
|
7
|
+
|
8
|
+
// ---------------------------------------------------------------------------
|
9
|
+
// bounceOut
|
10
|
+
|
11
|
+
@mixin animate-bounceOut(
|
12
|
+
$class : $default-animation-class-mode,
|
13
|
+
$keyframes : $default-keyframes-output
|
14
|
+
) {
|
15
|
+
$name: bounceOut;
|
16
|
+
@if $keyframes {
|
17
|
+
@include keyframes(bounceOut) {
|
18
|
+
0% {
|
19
|
+
@include scale(1);
|
20
|
+
}
|
21
|
+
25% {
|
22
|
+
@include scale(0.95);
|
23
|
+
}
|
24
|
+
50% {
|
25
|
+
opacity: 1;
|
26
|
+
@include scale(1.1);
|
27
|
+
}
|
28
|
+
100% {
|
29
|
+
opacity: 0;
|
30
|
+
@include scale(0.3);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
@include animation-class($name, $class) {}
|
35
|
+
}
|
36
|
+
|
37
|
+
// ---------------------------------------------------------------------------
|
38
|
+
// bounceOutUp
|
39
|
+
|
40
|
+
@mixin animate-bounceOutUp(
|
41
|
+
$class : $default-animation-class-mode,
|
42
|
+
$keyframes : $default-keyframes-output
|
43
|
+
) {
|
44
|
+
$name: bounceOutUp;
|
45
|
+
@if $keyframes {
|
46
|
+
@include keyframes($name) {
|
47
|
+
0% {
|
48
|
+
@include translateY(0);
|
49
|
+
}
|
50
|
+
20% {
|
51
|
+
opacity: 1;
|
52
|
+
@include translateY(20px);
|
53
|
+
}
|
54
|
+
100% {
|
55
|
+
opacity: 0;
|
56
|
+
@include translateY(-2000px);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
@include animation-class($name, $class) {}
|
61
|
+
}
|
62
|
+
|
63
|
+
// ---------------------------------------------------------------------------
|
64
|
+
// bounceOutDown
|
65
|
+
|
66
|
+
@mixin animate-bounceOutDown(
|
67
|
+
$class : $default-animation-class-mode,
|
68
|
+
$keyframes : $default-keyframes-output
|
69
|
+
) {
|
70
|
+
$name: bounceOutDown;
|
71
|
+
@if $keyframes {
|
72
|
+
@include keyframes($name) {
|
73
|
+
0% {
|
74
|
+
@include translateY(0);
|
75
|
+
}
|
76
|
+
20% {
|
77
|
+
opacity: 1;
|
78
|
+
@include translateY(-20px);
|
79
|
+
}
|
80
|
+
100% {
|
81
|
+
opacity: 0;
|
82
|
+
@include translateY(2000px);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
@include animation-class($name, $class) {}
|
87
|
+
}
|
88
|
+
|
89
|
+
// ---------------------------------------------------------------------------
|
90
|
+
// bounceOutLeft
|
91
|
+
|
92
|
+
@mixin animate-bounceOutLeft(
|
93
|
+
$class : $default-animation-class-mode,
|
94
|
+
$keyframes : $default-keyframes-output
|
95
|
+
) {
|
96
|
+
$name: bounceOutLeft;
|
97
|
+
@if $keyframes {
|
98
|
+
@include keyframes($name) {
|
99
|
+
0% {
|
100
|
+
@include translateX(0);
|
101
|
+
}
|
102
|
+
20% {
|
103
|
+
opacity: 1;
|
104
|
+
@include translateX(20px);
|
105
|
+
}
|
106
|
+
100% {
|
107
|
+
opacity: 0;
|
108
|
+
@include translateX(-2000px);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
@include animation-class($name, $class) {}
|
113
|
+
}
|
114
|
+
|
115
|
+
// ---------------------------------------------------------------------------
|
116
|
+
// bounceOutRight
|
117
|
+
|
118
|
+
@mixin animate-bounceOutRight(
|
119
|
+
$class : $default-animation-class-mode,
|
120
|
+
$keyframes : $default-keyframes-output
|
121
|
+
) {
|
122
|
+
$name: bounceOutRight;
|
123
|
+
@if $keyframes {
|
124
|
+
@include keyframes($name) {
|
125
|
+
0% {
|
126
|
+
@include translateX(0);
|
127
|
+
}
|
128
|
+
20% {
|
129
|
+
opacity: 1;
|
130
|
+
@include translateX(-20px);
|
131
|
+
}
|
132
|
+
100% {
|
133
|
+
opacity: 0;
|
134
|
+
@include translateX(2000px);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
@include animation-class($name, $class) {}
|
139
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// imports
|
3
|
+
|
4
|
+
@import compass/css3/animation
|
5
|
+
@import compass/css3/transform
|
6
|
+
@import compass/css3/opacity
|
7
|
+
|
8
|
+
// ---------------------------------------------------------------------------
|
9
|
+
// fadeIn
|
10
|
+
|
11
|
+
=animate-fadeIn($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
12
|
+
$name: fadeIn
|
13
|
+
@if $keyframes
|
14
|
+
+keyframes($name)
|
15
|
+
0%
|
16
|
+
opacity: 0
|
17
|
+
100%
|
18
|
+
opacity: 1
|
19
|
+
+animation-class($name, $class)
|
20
|
+
|
21
|
+
// ---------------------------------------------------------------------------
|
22
|
+
// fadeInUp
|
23
|
+
|
24
|
+
=animate-fadeInUp($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
25
|
+
$name: fadeInUp
|
26
|
+
@if $keyframes
|
27
|
+
+keyframes($name)
|
28
|
+
0%
|
29
|
+
+translateY(20px)
|
30
|
+
opacity: 0
|
31
|
+
100%
|
32
|
+
+translateY(0)
|
33
|
+
opacity: 1
|
34
|
+
+animation-class($name, $class)
|
35
|
+
|
36
|
+
// ---------------------------------------------------------------------------
|
37
|
+
// fadeInDown
|
38
|
+
|
39
|
+
=animate-fadeInDown($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
40
|
+
$name: fadeInDown
|
41
|
+
@if $keyframes
|
42
|
+
+keyframes($name)
|
43
|
+
0%
|
44
|
+
+translateY(-20px)
|
45
|
+
opacity: 0
|
46
|
+
100%
|
47
|
+
+translateY(0)
|
48
|
+
opacity: 1
|
49
|
+
+animation-class($name, $class)
|
50
|
+
|
51
|
+
// ---------------------------------------------------------------------------
|
52
|
+
// fadeInRight
|
53
|
+
|
54
|
+
=animate-fadeInRight($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
55
|
+
$name: fadeInRight
|
56
|
+
@if $keyframes
|
57
|
+
+keyframes($name)
|
58
|
+
0%
|
59
|
+
+translateX(20px)
|
60
|
+
opacity: 0
|
61
|
+
100%
|
62
|
+
+translateX(0)
|
63
|
+
opacity: 1
|
64
|
+
+animation-class($name, $class)
|
65
|
+
|
66
|
+
// ---------------------------------------------------------------------------
|
67
|
+
// fadeInLeft
|
68
|
+
|
69
|
+
=animate-fadeInLeft($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
70
|
+
$name: fadeInLeft
|
71
|
+
@if $keyframes
|
72
|
+
+keyframes($name)
|
73
|
+
0%
|
74
|
+
+translateX(-20px)
|
75
|
+
opacity: 0
|
76
|
+
100%
|
77
|
+
+translateX(0)
|
78
|
+
opacity: 1
|
79
|
+
+animation-class($name, $class)
|
80
|
+
|
81
|
+
// ---------------------------------------------------------------------------
|
82
|
+
// fadeInUpBig
|
83
|
+
|
84
|
+
=animate-fadeInUpBig($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
85
|
+
$name: fadeInUpBig
|
86
|
+
@if $keyframes
|
87
|
+
+keyframes($name)
|
88
|
+
0%
|
89
|
+
+translateY(2000px)
|
90
|
+
opacity: 0
|
91
|
+
100%
|
92
|
+
+translateY(0)
|
93
|
+
opacity: 1
|
94
|
+
+animation-class($name, $class)
|
95
|
+
|
96
|
+
// ---------------------------------------------------------------------------
|
97
|
+
// fadeInDownBig
|
98
|
+
|
99
|
+
=animate-fadeInDownBig($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
100
|
+
$name: fadeInDownBig
|
101
|
+
@if $keyframes
|
102
|
+
+keyframes($name)
|
103
|
+
0%
|
104
|
+
opacity: 0
|
105
|
+
+translateY(-2000px)
|
106
|
+
100%
|
107
|
+
opacity: 1
|
108
|
+
+translateY(0)
|
109
|
+
+animation-class($name, $class)
|
110
|
+
|
111
|
+
// ---------------------------------------------------------------------------
|
112
|
+
// fadeInRightBig
|
113
|
+
|
114
|
+
=animate-fadeInRightBig($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
115
|
+
$name: fadeInRightBig
|
116
|
+
@if $keyframes
|
117
|
+
+keyframes($name)
|
118
|
+
0%
|
119
|
+
opacity: 0
|
120
|
+
+translateX(2000px)
|
121
|
+
100%
|
122
|
+
opacity: 1
|
123
|
+
+translateX(0)
|
124
|
+
+animation-class($name, $class)
|
125
|
+
|
126
|
+
// ---------------------------------------------------------------------------
|
127
|
+
// fadeInLeftBig
|
128
|
+
|
129
|
+
=animate-fadeInLeftBig($class: $default-animation-class-mode, $keyframes: $default-keyframes-output)
|
130
|
+
$name: fadeInLeftBig
|
131
|
+
@if $keyframes
|
132
|
+
+keyframes($name)
|
133
|
+
0%
|
134
|
+
opacity: 0
|
135
|
+
+translateX(-2000px)
|
136
|
+
100%
|
137
|
+
opacity: 1
|
138
|
+
+translateX(0)
|
139
|
+
+animation-class($name, $class)
|