|
14 | 14 | animation: fadeInDown $duration; |
15 | 15 | } |
16 | 16 |
|
| 17 | +@mixin moveInLeft($duration: 2s) { |
| 18 | + -webkit-animation: moveInLeft $duration; /* Safari, Chrome and Opera > 12.1 */ |
| 19 | + -moz-animation: moveInLeft $duration; /* Firefox < 16 */ |
| 20 | + -ms-animation: moveInLeft $duration; /* Internet Explorer */ |
| 21 | + -o-animation: moveInLeft $duration; /* Opera < 12.1 */ |
| 22 | + animation: moveInLeft $duration; |
| 23 | +} |
| 24 | + |
| 25 | +@mixin moveOutLeft($duration: 2s) { |
| 26 | + -webkit-animation: moveOutLeft $duration; /* Safari, Chrome and Opera > 12.1 */ |
| 27 | + -moz-animation: moveOutLeft $duration; /* Firefox < 16 */ |
| 28 | + -ms-animation: moveOutLeft $duration; /* Internet Explorer */ |
| 29 | + -o-animation: moveOutLeft $duration; /* Opera < 12.1 */ |
| 30 | + animation: moveOutLeft $duration; |
| 31 | +} |
| 32 | + |
17 | 33 | @mixin fadeInUp($duration: 2s) { |
18 | 34 | -webkit-animation: fadeInUp $duration; /* Safari, Chrome and Opera > 12.1 */ |
19 | 35 | -moz-animation: fadeInUp $duration; /* Firefox < 16 */ |
|
30 | 46 | animation: fadeOut $duration; |
31 | 47 | } |
32 | 48 |
|
| 49 | +@mixin fadeOutUp($duration: 2s) { |
| 50 | + -webkit-animation: fadeOutUp $duration; /* Safari, Chrome and Opera > 12.1 */ |
| 51 | + -moz-animation: fadeOutUp $duration; /* Firefox < 16 */ |
| 52 | + -ms-animation: fadeOutUp $duration; /* Internet Explorer */ |
| 53 | + -o-animation: fadeOutUp $duration; /* Opera < 12.1 */ |
| 54 | + animation: fadeOutUp $duration; |
| 55 | +} |
| 56 | + |
33 | 57 | @mixin shake { |
34 | 58 | animation-name: shake; |
35 | 59 | animation-duration: 1s; |
|
51 | 75 | to { opacity: 1; transform: none; } |
52 | 76 | } |
53 | 77 |
|
| 78 | +@keyframes moveInLeft { |
| 79 | + from { opacity: 1; transform: translate3d(-100%, 0, 0); } |
| 80 | + to { opacity: 1; transform: none; } |
| 81 | +} |
| 82 | + |
| 83 | +@keyframes moveOutLeft { |
| 84 | + from { opacity: 1; transform: none; } |
| 85 | + to { opacity: 1; transform: translate3d(-100%, 0, 0);; } |
| 86 | +} |
| 87 | + |
54 | 88 | @keyframes fadeInUp { |
55 | 89 | from { opacity: 0; transform: translate3d(0, 50%, 0); } |
56 | 90 | to { opacity: 1; transform: none; } |
|
61 | 95 | to { opacity: 0; } |
62 | 96 | } |
63 | 97 |
|
| 98 | +@keyframes fadeOutUp { |
| 99 | + from { opacity: 1; transform: none; } |
| 100 | + to { opacity: 0; transform: translate3d(0, -100%, 0); } |
| 101 | +} |
| 102 | + |
64 | 103 | @keyframes shake { |
65 | 104 | from, to { |
66 | 105 | transform: translate3d(0, 0, 0); |
|
0 commit comments