| 1 |
// --------------------------------------------------------------------------- |
| 2 |
@include keyframes(flip) { |
| 3 |
0% { |
| 4 |
@include transform(perspective(400px) rotateY(0)); |
| 5 |
@include animation-timing-function(ease-out); |
| 6 |
} |
| 7 |
40% { |
| 8 |
@include transform(perspective(400px) translateZ(150px) rotateY(170deg)); |
| 9 |
@include animation-timing-function(ease-out); |
| 10 |
} |
| 11 |
50% { |
| 12 |
@include transform(perspective(400px) translateZ(150px) rotateY(190deg) scale(1)); |
| 13 |
@include animation-timing-function(ease-in); |
| 14 |
} |
| 15 |
80% { |
| 16 |
@include transform(perspective(400px) rotateY(360deg) scale(0.95)); |
| 17 |
@include animation-timing-function(ease-in); |
| 18 |
} |
| 19 |
100% { |
| 20 |
@include transform(perspective(400px) scale(1)); |
| 21 |
@include animation-timing-function(ease-in); |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
// --------------------------------------------------------------------------- |
| 27 |
@include keyframes(flipInX) { |
| 28 |
0% { |
| 29 |
@include transform(perspective(400px) rotateX(90deg)); |
| 30 |
@include opacity(0); |
| 31 |
} |
| 32 |
40% { |
| 33 |
@include transform(perspective(400px) rotateX(-10deg)); |
| 34 |
} |
| 35 |
70% { |
| 36 |
@include transform(perspective(400px) rotateX(10deg)); |
| 37 |
} |
| 38 |
100% { |
| 39 |
@include transform(perspective(400px) rotateX(0deg)); |
| 40 |
@include opacity(1); |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
// --------------------------------------------------------------------------- |
| 46 |
@include keyframes(flipOutX) { |
| 47 |
0% { |
| 48 |
@include transform(perspective(400px) rotateX(0deg)); |
| 49 |
@include opacity(1); |
| 50 |
} |
| 51 |
100% { |
| 52 |
@include transform(perspective(400px) rotateX(90deg)); |
| 53 |
@include opacity(0); |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
// --------------------------------------------------------------------------- |
| 59 |
@include keyframes(flipInY) { |
| 60 |
0% { |
| 61 |
@include transform(perspective(400px) rotateY(90deg)); |
| 62 |
@include opacity(0); |
| 63 |
} |
| 64 |
40% { |
| 65 |
@include transform(perspective(400px) rotateY(-10deg)); |
| 66 |
} |
| 67 |
70% { |
| 68 |
@include transform(perspective(400px) rotateY(10deg)); |
| 69 |
} |
| 70 |
100% { |
| 71 |
@include transform(perspective(400px) rotateY(0deg)); |
| 72 |
@include opacity(1); |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
// --------------------------------------------------------------------------- |
| 78 |
@include keyframes(flipOutY) { |
| 79 |
0% { |
| 80 |
@include transform(perspective(400px) rotateY(0deg)); |
| 81 |
@include opacity(1); |
| 82 |
} |
| 83 |
100% { |
| 84 |
@include transform(perspective(400px) rotateY(90deg)); |
| 85 |
@include opacity(0); |
| 86 |
} |
| 87 |
} |