| 1 |
// --------------------------------------------------------------------------- |
| 2 |
@include keyframes(hinge) { |
| 3 |
0% { |
| 4 |
@include rotate(0); |
| 5 |
@include transform-origin(top left); |
| 6 |
@include animation-timing-function(ease-in-out); } |
| 7 |
20%, 60% { |
| 8 |
@include rotate(80deg); |
| 9 |
@include transform-origin(top left); |
| 10 |
@include animation-timing-function(ease-in-out); } |
| 11 |
40% { |
| 12 |
@include rotate(60deg); |
| 13 |
@include transform-origin(top left); |
| 14 |
@include animation-timing-function(ease-in-out); } |
| 15 |
80% { |
| 16 |
@include transform(rotate(60deg) translateY(0)); |
| 17 |
@include opacity(1); |
| 18 |
@include transform-origin(top left); |
| 19 |
@include animation-timing-function(ease-in-out); } |
| 20 |
100% { |
| 21 |
@include translateY(700px); |
| 22 |
@include opacity(0); } } |
| 23 |
|
| 24 |
|
| 25 |
// --------------------------------------------------------------------------- |
| 26 |
@include keyframes(rollIn) { |
| 27 |
0% { |
| 28 |
@include opacity(0); |
| 29 |
@include transform(translateX(-100%) rotate(-120deg)); } |
| 30 |
100% { |
| 31 |
@include opacity(1); |
| 32 |
@include transform(translateX(0px) rotate(0deg)); } } |
| 33 |
|
| 34 |
|
| 35 |
// --------------------------------------------------------------------------- |
| 36 |
@include keyframes(rollOut) { |
| 37 |
0% { |
| 38 |
@include opacity(1); |
| 39 |
@include transform(translateX(0px) rotate(0deg)); } |
| 40 |
100% { |
| 41 |
@include opacity(0); |
| 42 |
@include transform(translateX(-100%) rotate(-120deg)); } } |