animate 0.1.0 → 0.2.beta.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/stylesheets/_animate.scss +15 -9
- data/stylesheets/_helpers.scss +10 -6
- data/stylesheets/animate/_attention.scss +13 -9
- data/stylesheets/animate/_bounce.scss +40 -34
- data/stylesheets/animate/_fade.scss +25 -21
- data/stylesheets/animate/_flip.scss +47 -33
- data/stylesheets/animate/_lightSpeed.scss +7 -3
- data/stylesheets/animate/_roll.scss +7 -3
- data/stylesheets/animate/_rotate.scss +17 -14
- data/stylesheets/animate/_special.scss +6 -2
- data/stylesheets/animate/attention/_flash.scss +21 -16
- data/stylesheets/animate/attention/_pulse.scss +15 -10
- data/stylesheets/animate/attention/_shake.scss +39 -34
- data/stylesheets/animate/attention/_swing.scss +24 -19
- data/stylesheets/animate/attention/_tada.scss +38 -33
- data/stylesheets/animate/attention/_wiggle.scss +39 -34
- data/stylesheets/animate/attention/_wobble.scss +27 -22
- data/stylesheets/animate/bounce/_bounceIn.scss +100 -75
- data/stylesheets/animate/bounce/_bounceOut.scss +88 -63
- data/stylesheets/animate/fade/_fadeIn.scss +133 -88
- data/stylesheets/animate/fade/_fadeOut.scss +133 -88
- data/stylesheets/animate/flip/_flipIn.scss +47 -33
- data/stylesheets/animate/flip/_flipOut.scss +35 -21
- data/stylesheets/animate/lightSpeed/_lightSpeedIn.scss +22 -17
- data/stylesheets/animate/lightSpeed/_lightSpeedOut.scss +14 -9
- data/stylesheets/animate/roll/_rollIn.scss +14 -9
- data/stylesheets/animate/roll/_rollOut.scss +13 -8
- data/stylesheets/animate/rotate/_rotateIn.scss +114 -72
- data/stylesheets/animate/rotate/_rotateOut.scss +114 -72
- data/stylesheets/animate/special/_hinge.scss +32 -27
- metadata +10 -7
data/stylesheets/_animate.scss
CHANGED
@@ -18,23 +18,29 @@
|
|
18
18
|
|
19
19
|
// ---------------------------------------------------------------------------
|
20
20
|
// animate [ attention | bounce | fade | flip |
|
21
|
-
// lightSpeed | rotate | special | all ]
|
21
|
+
// lightSpeed | roll | rotate | special | all ]
|
22
22
|
|
23
|
-
@mixin animate(
|
23
|
+
@mixin animate(
|
24
|
+
$sub : all,
|
25
|
+
$class : $default-animation-class-mode,
|
26
|
+
$keyframes : $default-keyframes-output
|
27
|
+
) {
|
24
28
|
$sub : compact($sub);
|
25
29
|
$attention : yepnope($sub, all attention);
|
26
30
|
$bounce : yepnope($sub, all bounce);
|
27
31
|
$fade : yepnope($sub, all fade);
|
28
32
|
$flip : yepnope($sub, all flip);
|
29
33
|
$lightSpeed : yepnope($sub, all lightSpeed);
|
34
|
+
$roll : yepnope($sub, all roll);
|
30
35
|
$rotate : yepnope($sub, all rotate);
|
31
36
|
$special : yepnope($sub, all special);
|
32
|
-
@if $attention { @include animate-attention (all, $class); }
|
33
|
-
@if $bounce { @include animate-bounce (all, $class); }
|
34
|
-
@if $fade { @include animate-fade (all, $class); }
|
35
|
-
@if $flip { @include animate-flip (all, $class); }
|
36
|
-
@if $lightSpeed { @include animate-lightSpeed (all, $class); }
|
37
|
-
@if $
|
38
|
-
@if $
|
37
|
+
@if $attention { @include animate-attention (all, $class, $keyframes); }
|
38
|
+
@if $bounce { @include animate-bounce (all, $class, $keyframes); }
|
39
|
+
@if $fade { @include animate-fade (all, $class, $keyframes); }
|
40
|
+
@if $flip { @include animate-flip (all, $class, $keyframes); }
|
41
|
+
@if $lightSpeed { @include animate-lightSpeed (all, $class, $keyframes); }
|
42
|
+
@if $roll { @include animate-roll (all, $class, $keyframes); }
|
43
|
+
@if $rotate { @include animate-rotate (all, $class, $keyframes); }
|
44
|
+
@if $special { @include animate-special (all, $class, $keyframes); }
|
39
45
|
}
|
40
46
|
|
data/stylesheets/_helpers.scss
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
// ---------------------------------------------------------------------------
|
2
|
-
//
|
2
|
+
// settings
|
3
3
|
|
4
|
+
// animation class mode: true | false | silent
|
4
5
|
$default-animation-class-mode: silent !default;
|
5
6
|
|
7
|
+
// keyframes output: true | false
|
8
|
+
$default-keyframes-output: true;
|
9
|
+
|
6
10
|
// ---------------------------------------------------------------------------
|
7
11
|
// animated class for external use
|
8
12
|
@mixin animated-class($class: $default-animation-class-mode) {
|
@@ -16,10 +20,10 @@ $default-animation-class-mode: silent !default;
|
|
16
20
|
@mixin animation-class($name, $class: $default-animation-class-mode) {
|
17
21
|
$selector: if($class == 'silent', '%', '.') + $name;
|
18
22
|
@if $class {
|
19
|
-
#{$selector} {
|
20
|
-
@include animation-name($name);
|
23
|
+
#{$selector} {
|
24
|
+
@include animation-name($name);
|
21
25
|
@content;
|
22
|
-
}
|
26
|
+
}
|
23
27
|
}
|
24
28
|
}
|
25
29
|
|
@@ -31,7 +35,7 @@ $default-animation-class-mode: silent !default;
|
|
31
35
|
$list : compact($list);
|
32
36
|
$return : false;
|
33
37
|
@each $arg in $args {
|
34
|
-
$return: if(index($list,$arg), true, $return);
|
38
|
+
$return: if(index($list,$arg), true, $return);
|
35
39
|
}
|
36
|
-
@return $return;
|
40
|
+
@return $return;
|
37
41
|
}
|
@@ -10,10 +10,14 @@
|
|
10
10
|
@import "attention/wiggle";
|
11
11
|
|
12
12
|
// ---------------------------------------------------------------------------
|
13
|
-
// attention [ flash | shake | tada |
|
13
|
+
// attention [ flash | shake | tada |
|
14
14
|
// swing | wobble | pulse | wiggle ]
|
15
15
|
|
16
|
-
@mixin animate-attention(
|
16
|
+
@mixin animate-attention(
|
17
|
+
$sub : all,
|
18
|
+
$class : $default-animation-class-mode,
|
19
|
+
$keyframes : $default-keyframes-output
|
20
|
+
) {
|
17
21
|
$sub : compact($sub);
|
18
22
|
$flash : yepnope($sub, all flash);
|
19
23
|
$shake : yepnope($sub, all shake);
|
@@ -22,11 +26,11 @@
|
|
22
26
|
$wobble : yepnope($sub, all wobble);
|
23
27
|
$pulse : yepnope($sub, all pulse);
|
24
28
|
$wiggle : yepnope($sub, all wiggle);
|
25
|
-
@if $flash { @include animate-flash ($class); }
|
26
|
-
@if $shake { @include animate-shake ($class); }
|
27
|
-
@if $tada { @include animate-tada ($class); }
|
28
|
-
@if $swing { @include animate-swing ($class); }
|
29
|
-
@if $wobble { @include animate-wobble ($class); }
|
30
|
-
@if $pulse { @include animate-pulse ($class); }
|
31
|
-
@if $wiggle { @include animate-wiggle ($class); }
|
29
|
+
@if $flash { @include animate-flash ($class, $keyframes); }
|
30
|
+
@if $shake { @include animate-shake ($class, $keyframes); }
|
31
|
+
@if $tada { @include animate-tada ($class, $keyframes); }
|
32
|
+
@if $swing { @include animate-swing ($class, $keyframes); }
|
33
|
+
@if $wobble { @include animate-wobble ($class, $keyframes); }
|
34
|
+
@if $pulse { @include animate-pulse ($class, $keyframes); }
|
35
|
+
@if $wiggle { @include animate-wiggle ($class, $keyframes); }
|
32
36
|
}
|
@@ -7,11 +7,15 @@
|
|
7
7
|
@import "bounce/bounceOut";
|
8
8
|
|
9
9
|
// ---------------------------------------------------------------------------
|
10
|
-
// bounce [ in | inUp | inDown | inLeft | inRight |
|
10
|
+
// bounce [ in | inUp | inDown | inLeft | inRight |
|
11
11
|
// out | outUp | outDown | outLeft | outRight |
|
12
12
|
// up | down | left | right | only | all ]
|
13
13
|
|
14
|
-
@mixin animate-bounce(
|
14
|
+
@mixin animate-bounce(
|
15
|
+
$sub : all,
|
16
|
+
$class : $default-animation-class-mode,
|
17
|
+
$keyframes : $default-keyframes-output
|
18
|
+
) {
|
15
19
|
$sub : compact($sub);
|
16
20
|
$only : yepnope($sub, all only);
|
17
21
|
$in : yepnope($sub, all in);
|
@@ -24,41 +28,43 @@
|
|
24
28
|
$outDown : yepnope($sub, all out outDown down);
|
25
29
|
$outLeft : yepnope($sub, all out outLeft left);
|
26
30
|
$outRight : yepnope($sub, all out outRight right);
|
27
|
-
@if $in { @include animate-bounceIn ($class); }
|
28
|
-
@if $inUp { @include animate-bounceInUp ($class); }
|
29
|
-
@if $inDown { @include animate-bounceInDown ($class); }
|
30
|
-
@if $inLeft { @include animate-bounceInLeft ($class); }
|
31
|
-
@if $inRight { @include animate-bounceInRight ($class); }
|
32
|
-
@if $out { @include animate-bounceOut ($class); }
|
33
|
-
@if $outUp { @include animate-bounceOutUp ($class); }
|
34
|
-
@if $outDown { @include animate-bounceOutDown ($class); }
|
35
|
-
@if $outLeft { @include animate-bounceOutLeft ($class); }
|
36
|
-
@if $outRight { @include animate-bounceOutRight ($class); }
|
31
|
+
@if $in { @include animate-bounceIn ($class, $keyframes); }
|
32
|
+
@if $inUp { @include animate-bounceInUp ($class, $keyframes); }
|
33
|
+
@if $inDown { @include animate-bounceInDown ($class, $keyframes); }
|
34
|
+
@if $inLeft { @include animate-bounceInLeft ($class, $keyframes); }
|
35
|
+
@if $inRight { @include animate-bounceInRight ($class, $keyframes); }
|
36
|
+
@if $out { @include animate-bounceOut ($class, $keyframes); }
|
37
|
+
@if $outUp { @include animate-bounceOutUp ($class, $keyframes); }
|
38
|
+
@if $outDown { @include animate-bounceOutDown ($class, $keyframes); }
|
39
|
+
@if $outLeft { @include animate-bounceOutLeft ($class, $keyframes); }
|
40
|
+
@if $outRight { @include animate-bounceOutRight ($class, $keyframes); }
|
37
41
|
|
38
42
|
$name: bounce;
|
39
|
-
@if $only {
|
40
|
-
@
|
41
|
-
|
42
|
-
|
43
|
+
@if $only {
|
44
|
+
@if $keyframes {
|
45
|
+
@include keyframes($name) {
|
46
|
+
0% {
|
47
|
+
@include translateY(0);
|
48
|
+
}
|
49
|
+
20% {
|
50
|
+
@include translateY(0);
|
51
|
+
}
|
52
|
+
40% {
|
53
|
+
@include translateY(-30px);
|
54
|
+
}
|
55
|
+
50% {
|
56
|
+
@include translateY(0);
|
57
|
+
}
|
58
|
+
60% {
|
59
|
+
@include translateY(-15px);
|
60
|
+
}
|
61
|
+
80% {
|
62
|
+
@include translateY(0);
|
63
|
+
}
|
64
|
+
100% {
|
65
|
+
@include translateY(0);
|
66
|
+
}
|
43
67
|
}
|
44
|
-
20% {
|
45
|
-
@include translateY(0);
|
46
|
-
}
|
47
|
-
40% {
|
48
|
-
@include translateY(-30px);
|
49
|
-
}
|
50
|
-
50% {
|
51
|
-
@include translateY(0);
|
52
|
-
}
|
53
|
-
60% {
|
54
|
-
@include translateY(-15px);
|
55
|
-
}
|
56
|
-
80% {
|
57
|
-
@include translateY(0);
|
58
|
-
}
|
59
|
-
100% {
|
60
|
-
@include translateY(0);
|
61
|
-
}
|
62
68
|
}
|
63
69
|
@include animation-class($name, $class) {}
|
64
70
|
}
|
@@ -5,13 +5,17 @@
|
|
5
5
|
@import "fade/fadeOut";
|
6
6
|
|
7
7
|
// ---------------------------------------------------------------------------
|
8
|
-
// fade [ in | inUp | inDown | inLeft | inRight |
|
9
|
-
// inUpBig | inDownBig | inLeftBig | inRightBig |
|
8
|
+
// fade [ in | inUp | inDown | inLeft | inRight |
|
9
|
+
// inUpBig | inDownBig | inLeftBig | inRightBig |
|
10
10
|
// out | outUp | outDown | outLeft | outRight |
|
11
11
|
// outUpBig | outDownBig | outLeftBig | outRightBig |
|
12
12
|
// up | down | left | right | big | all ]
|
13
13
|
|
14
|
-
@mixin animate-fade(
|
14
|
+
@mixin animate-fade(
|
15
|
+
$sub : all,
|
16
|
+
$class : $default-animation-class-mode,
|
17
|
+
$keyframes : $default-keyframes-output
|
18
|
+
) {
|
15
19
|
$sub : compact($sub);
|
16
20
|
$in : yepnope($sub, all in);
|
17
21
|
$inUp : yepnope($sub, all in inUp up);
|
@@ -31,22 +35,22 @@
|
|
31
35
|
$outDownBig : yepnope($sub, all out outDown down big);
|
32
36
|
$outLeftBig : yepnope($sub, all out outLeft left big);
|
33
37
|
$outRightBig : yepnope($sub, all out outRight right big);
|
34
|
-
@if $in { @include animate-fadeIn ($class); }
|
35
|
-
@if $inUp { @include animate-fadeInUp ($class); }
|
36
|
-
@if $inDown { @include animate-fadeInDown ($class); }
|
37
|
-
@if $inLeft { @include animate-fadeInLeft ($class); }
|
38
|
-
@if $inRight { @include animate-fadeInRight ($class); }
|
39
|
-
@if $inUpBig { @include animate-fadeInUpBig ($class); }
|
40
|
-
@if $inDownBig { @include animate-fadeInDownBig ($class); }
|
41
|
-
@if $inLeftBig { @include animate-fadeInLeftBig ($class); }
|
42
|
-
@if $inRightBig { @include animate-fadeInRightBig ($class); }
|
43
|
-
@if $out { @include animate-fadeOut ($class); }
|
44
|
-
@if $outUp { @include animate-fadeOutUp ($class); }
|
45
|
-
@if $outDown { @include animate-fadeOutDown ($class); }
|
46
|
-
@if $outLeft { @include animate-fadeOutLeft ($class); }
|
47
|
-
@if $outRight { @include animate-fadeOutRight ($class); }
|
48
|
-
@if $outUpBig { @include animate-fadeOutUpBig ($class); }
|
49
|
-
@if $outDownBig { @include animate-fadeOutDownBig ($class); }
|
50
|
-
@if $outLeftBig { @include animate-fadeOutLeftBig ($class); }
|
51
|
-
@if $outRightBig { @include animate-fadeOutRightBig ($class); }
|
38
|
+
@if $in { @include animate-fadeIn ($class, $keyframes); }
|
39
|
+
@if $inUp { @include animate-fadeInUp ($class, $keyframes); }
|
40
|
+
@if $inDown { @include animate-fadeInDown ($class, $keyframes); }
|
41
|
+
@if $inLeft { @include animate-fadeInLeft ($class, $keyframes); }
|
42
|
+
@if $inRight { @include animate-fadeInRight ($class, $keyframes); }
|
43
|
+
@if $inUpBig { @include animate-fadeInUpBig ($class, $keyframes); }
|
44
|
+
@if $inDownBig { @include animate-fadeInDownBig ($class, $keyframes); }
|
45
|
+
@if $inLeftBig { @include animate-fadeInLeftBig ($class, $keyframes); }
|
46
|
+
@if $inRightBig { @include animate-fadeInRightBig ($class, $keyframes); }
|
47
|
+
@if $out { @include animate-fadeOut ($class, $keyframes); }
|
48
|
+
@if $outUp { @include animate-fadeOutUp ($class, $keyframes); }
|
49
|
+
@if $outDown { @include animate-fadeOutDown ($class, $keyframes); }
|
50
|
+
@if $outLeft { @include animate-fadeOutLeft ($class, $keyframes); }
|
51
|
+
@if $outRight { @include animate-fadeOutRight ($class, $keyframes); }
|
52
|
+
@if $outUpBig { @include animate-fadeOutUpBig ($class, $keyframes); }
|
53
|
+
@if $outDownBig { @include animate-fadeOutDownBig ($class, $keyframes); }
|
54
|
+
@if $outLeftBig { @include animate-fadeOutLeftBig ($class, $keyframes); }
|
55
|
+
@if $outRightBig { @include animate-fadeOutRightBig ($class, $keyframes); }
|
52
56
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
// ---------------------------------------------------------------------------
|
11
|
-
// imports
|
11
|
+
// imports
|
12
12
|
@import "compass/css3/animation";
|
13
13
|
|
14
14
|
@import "flip/flipIn";
|
@@ -16,11 +16,15 @@
|
|
16
16
|
|
17
17
|
// ---------------------------------------------------------------------------
|
18
18
|
// flip [ only | in | out | x | y | all |
|
19
|
-
// flipIn | flipInX | flipInY |
|
19
|
+
// flipIn | flipInX | flipInY |
|
20
20
|
// flipOut | flipOutX | flipOutY |
|
21
21
|
// flipX | flipY ]
|
22
22
|
|
23
|
-
@mixin animate-flip(
|
23
|
+
@mixin animate-flip(
|
24
|
+
$sub : all,
|
25
|
+
$class : $default-animation-class-mode,
|
26
|
+
$keyframes : $default-keyframes-output
|
27
|
+
) {
|
24
28
|
$sub : compact($sub);
|
25
29
|
$only : yepnope($sub, all only);
|
26
30
|
$flipInX : yepnope($sub, all flipIn flipInX flipX in x);
|
@@ -28,33 +32,35 @@
|
|
28
32
|
$flipOutX : yepnope($sub, all flipOut flipOutX flipX out x);
|
29
33
|
$flipOutY : yepnope($sub, all flipOut flipOutY flipY out y);
|
30
34
|
|
31
|
-
@if $flipInX { @include animate-flipInX ($class); }
|
32
|
-
@if $flipInY { @include animate-flipInY ($class); }
|
33
|
-
@if $flipOutX { @include animate-flipOutX ($class); }
|
34
|
-
@if $flipOutY { @include animate-flipOutY ($class); }
|
35
|
+
@if $flipInX { @include animate-flipInX ($class, $keyframes); }
|
36
|
+
@if $flipInY { @include animate-flipInY ($class, $keyframes); }
|
37
|
+
@if $flipOutX { @include animate-flipOutX ($class, $keyframes); }
|
38
|
+
@if $flipOutY { @include animate-flipOutY ($class, $keyframes); }
|
35
39
|
|
36
40
|
$name: flip;
|
37
41
|
@if $only {
|
38
|
-
@
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
42
|
+
@if $keyframes {
|
43
|
+
@include keyframes($name) {
|
44
|
+
0% {
|
45
|
+
@include transform(perspective(400px) rotateY(0));
|
46
|
+
@include animation-timing-function(ease-out);
|
47
|
+
}
|
48
|
+
40% {
|
49
|
+
@include transform(perspective(400px) translateZ(150px) rotateY(170deg));
|
50
|
+
@include animation-timing-function(ease-out);
|
51
|
+
}
|
52
|
+
50% {
|
53
|
+
@include transform(perspective(400px) translateZ(150px) rotateY(190deg) scale(1));
|
54
|
+
@include animation-timing-function(ease-in);
|
55
|
+
}
|
56
|
+
80% {
|
57
|
+
@include transform(perspective(400px) rotateY(360deg) scale(0.95));
|
58
|
+
@include animation-timing-function(ease-in);
|
59
|
+
}
|
60
|
+
100% {
|
61
|
+
@include transform(perspective(400px) scale(1));
|
62
|
+
@include animation-timing-function(ease-in);
|
63
|
+
}
|
58
64
|
}
|
59
65
|
}
|
60
66
|
@include flip-class($name, $class);
|
@@ -64,21 +70,29 @@
|
|
64
70
|
// ---------------------------------------------------------------------------
|
65
71
|
// flipX [ in | out | all ]
|
66
72
|
|
67
|
-
@mixin animate-flipX(
|
73
|
+
@mixin animate-flipX(
|
74
|
+
$sub : all,
|
75
|
+
$class : $default-animation-class-mode,
|
76
|
+
$keyframes : $default-keyframes-output
|
77
|
+
) {
|
68
78
|
$sub : compact($sub);
|
69
79
|
$in : yepnope($sub, all in);
|
70
80
|
$out : yepnope($sub, all out);
|
71
|
-
@if $in { @include animate-flipInX (all, $class); }
|
72
|
-
@if $out { @include animate-flipOutX (all, $class); }
|
81
|
+
@if $in { @include animate-flipInX (all, $class, $keyframes); }
|
82
|
+
@if $out { @include animate-flipOutX (all, $class, $keyframes); }
|
73
83
|
}
|
74
84
|
|
75
85
|
// ---------------------------------------------------------------------------
|
76
86
|
// flipY [ in | out | all ]
|
77
87
|
|
78
|
-
@mixin animate-flipY(
|
88
|
+
@mixin animate-flipY(
|
89
|
+
$sub : all,
|
90
|
+
$class : $default-animation-class-mode,
|
91
|
+
$keyframes : $default-keyframes-output
|
92
|
+
) {
|
79
93
|
$sub : compact($sub);
|
80
94
|
$in : yepnope($sub, all in);
|
81
95
|
$out : yepnope($sub, all out);
|
82
|
-
@if $in { @include animate-flipInY (all, $class); }
|
83
|
-
@if $out { @include animate-flipOutY (all, $class); }
|
96
|
+
@if $in { @include animate-flipInY (all, $class, $keyframes); }
|
97
|
+
@if $out { @include animate-flipOutY (all, $class, $keyframes); }
|
84
98
|
}
|
@@ -7,10 +7,14 @@
|
|
7
7
|
// ---------------------------------------------------------------------------
|
8
8
|
// lightSpeed [ in | out | all ]
|
9
9
|
|
10
|
-
@mixin animate-lightSpeed(
|
10
|
+
@mixin animate-lightSpeed(
|
11
|
+
$sub : all,
|
12
|
+
$class : $default-animation-class-mode,
|
13
|
+
$keyframes : $default-keyframes-output
|
14
|
+
) {
|
11
15
|
$sub : compact($sub);
|
12
16
|
$in : yepnope($sub, all in);
|
13
17
|
$out : yepnope($sub, all out);
|
14
|
-
@if $in { @include animate-lightSpeedIn ($class); }
|
15
|
-
@if $out { @include animate-lightSpeedOut ($class); }
|
18
|
+
@if $in { @include animate-lightSpeedIn ($class, $keyframes); }
|
19
|
+
@if $out { @include animate-lightSpeedOut ($class, $keyframes); }
|
16
20
|
}
|
@@ -7,10 +7,14 @@
|
|
7
7
|
// ---------------------------------------------------------------------------
|
8
8
|
// roll [ in | out | all ]
|
9
9
|
|
10
|
-
@mixin animate-roll(
|
10
|
+
@mixin animate-roll(
|
11
|
+
$sub : all,
|
12
|
+
$class : $default-animation-class-mode,
|
13
|
+
$keyframes : $default-keyframes-output
|
14
|
+
) {
|
11
15
|
$sub : compact($sub);
|
12
16
|
$in : yepnope($sub, all in);
|
13
17
|
$out : yepnope($sub, all out);
|
14
|
-
@if $in { @include animate-rollIn ($class); }
|
15
|
-
@if $out { @include animate-rollOut ($class); }
|
18
|
+
@if $in { @include animate-rollIn ($class, $keyframes); }
|
19
|
+
@if $out { @include animate-rollOut ($class, $keyframes); }
|
16
20
|
}
|
@@ -5,13 +5,17 @@
|
|
5
5
|
@import "rotate/rotateOut";
|
6
6
|
|
7
7
|
// ---------------------------------------------------------------------------
|
8
|
-
// rotate [ in | in-only | inUp | inDown | inLeft | inRight |
|
8
|
+
// rotate [ in | in-only | inUp | inDown | inLeft | inRight |
|
9
9
|
// inDownLeft | inDownRight | inUpLeft | inUpRight |
|
10
10
|
// out | out-only | outUp | outDown | outLeft | outRight |
|
11
|
-
// outDownLeft | outDownRight | outUpLeft | outUpRight |
|
11
|
+
// outDownLeft | outDownRight | outUpLeft | outUpRight |
|
12
12
|
// left | right | up | down | all ]
|
13
13
|
|
14
|
-
@mixin animate-rotate(
|
14
|
+
@mixin animate-rotate(
|
15
|
+
$sub : all,
|
16
|
+
$class : $default-animation-class-mode,
|
17
|
+
$keyframes : $default-keyframes-output
|
18
|
+
) {
|
15
19
|
$sub : compact($sub);
|
16
20
|
$in-only : yepnope($sub, all in in-only);
|
17
21
|
$inDownLeft : yepnope($sub, all in inDown inLeft left down);
|
@@ -23,15 +27,14 @@
|
|
23
27
|
$outDownRight : yepnope($sub, all out outDown outRight right down);
|
24
28
|
$outUpLeft : yepnope($sub, all out outUp outLeft left up);
|
25
29
|
$outUpRight : yepnope($sub, all out outUp outRight right up);
|
26
|
-
@if $in-only { @include animate-rotateIn (only, $class); }
|
27
|
-
@if $inDownLeft { @include animate-rotateInDownLeft ($class); }
|
28
|
-
@if $inDownRight { @include animate-rotateInDownRight ($class); }
|
29
|
-
@if $inUpLeft { @include animate-rotateInUpLeft ($class); }
|
30
|
-
@if $inUpRight { @include animate-rotateInUpRight ($class); }
|
31
|
-
@if $out-only { @include animate-rotateOut (only, $class); }
|
32
|
-
@if $outDownLeft { @include animate-rotateOutDownLeft ($class); }
|
33
|
-
@if $outDownRight { @include animate-rotateOutDownRight ($class); }
|
34
|
-
@if $outUpLeft { @include animate-rotateOutUpLeft ($class); }
|
35
|
-
@if $outUpRight { @include animate-rotateOutUpRight ($class); }
|
30
|
+
@if $in-only { @include animate-rotateIn (only, $class, $keyframes); }
|
31
|
+
@if $inDownLeft { @include animate-rotateInDownLeft ($class, $keyframes); }
|
32
|
+
@if $inDownRight { @include animate-rotateInDownRight ($class, $keyframes); }
|
33
|
+
@if $inUpLeft { @include animate-rotateInUpLeft ($class, $keyframes); }
|
34
|
+
@if $inUpRight { @include animate-rotateInUpRight ($class, $keyframes); }
|
35
|
+
@if $out-only { @include animate-rotateOut (only, $class, $keyframes); }
|
36
|
+
@if $outDownLeft { @include animate-rotateOutDownLeft ($class, $keyframes); }
|
37
|
+
@if $outDownRight { @include animate-rotateOutDownRight ($class, $keyframes); }
|
38
|
+
@if $outUpLeft { @include animate-rotateOutUpLeft ($class, $keyframes); }
|
39
|
+
@if $outUpRight { @include animate-rotateOutUpRight ($class, $keyframes); }
|
36
40
|
}
|
37
|
-
|