style.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .flipper-card {
  2. box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 0.2);
  3. height: 300px;
  4. left: 50%;
  5. line-height: 300px;
  6. margin: -150px 0 -100px;
  7. perspective: 500px;
  8. position: absolute;
  9. text-align: center;
  10. top: 50%;
  11. transform: translateZ(0);
  12. width: 200px; }
  13. .flipper-card span {
  14. background: #202020;
  15. color: #f8f8f8;
  16. display: block;
  17. font-size: 250px;
  18. left: 0;
  19. position: absolute;
  20. top: 0;
  21. text-shadow: 0 1px 0 #282828, 0 2px 0 #1e1e1e, 0 3px 0 #141414, 0 4px 0 #0a0a0a, 0 5px 0 #000, 0 0 10px rgba(0, 0, 0, 0.8);
  22. transform-origin: 0 150px 0;
  23. width: 100%; }
  24. .flipper-card span:before {
  25. border-bottom: 2px solid #000;
  26. content: '';
  27. left: 0;
  28. position: absolute;
  29. width: 100%; }
  30. .flipper-card span:after {
  31. box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
  32. content: '';
  33. height: 100%;
  34. left: 0;
  35. position: absolute;
  36. top: 0;
  37. width: 100%; }
  38. .flipper-card .small {
  39. font-size: 175px; }
  40. .flipper-card .top {
  41. border-top-left-radius: 11px;
  42. border-top-right-radius: 11px;
  43. box-shadow: inset 0 2px rgba(0, 0, 0, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.4);
  44. height: 50%;
  45. overflow: hidden; }
  46. .flipper-card .top:before {
  47. bottom: 0; }
  48. .flipper-card .top:after {
  49. background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  50. border-top-left-radius: 11px;
  51. border-top-right-radius: 11px; }
  52. .flipper-card .bottom {
  53. border-radius: 10px;
  54. height: 100%; }
  55. .flipper-card .bottom:before {
  56. top: 50%; }
  57. .flipper-card .bottom:after {
  58. border-radius: 10px;
  59. background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0)); }
  60. .flipper-card.down .top {
  61. border-top-left-radius: 11px;
  62. border-top-right-radius: 11px;
  63. height: 50%; }
  64. .flipper-card.down .top.current {
  65. transform-style: flat;
  66. z-index: 3; }
  67. .flipper-card.down .top.next {
  68. transform: rotate3d(1, 0, 0, -90deg);
  69. z-index: 4; }
  70. .flipper-card.down .bottom {
  71. border-radius: 10px; }
  72. .flipper-card.down .bottom.current {
  73. z-index: 2; }
  74. .flipper-card.down .bottom.next {
  75. z-index: 1; }
  76. .flipper-card.down.changing .bottom.current {
  77. box-shadow: 0 75px 5px -20px rgba(0, 0, 0, 0.3);
  78. transform: rotate3d(1, 0, 0, 90deg);
  79. transition: transform 0.35s ease-in, box-shadow 0.35s ease-in; }
  80. .flipper-card.down.changing .top.next, .flipper-card.down.changed .top.next {
  81. transition: transform 0.35s ease-out 0.35s;
  82. transform: none; }
  83. .flipper-card.up .top {
  84. height: 50%; }
  85. .flipper-card.up .top.current {
  86. z-index: 4; }
  87. .flipper-card.up .top.next {
  88. z-index: 3; }
  89. .flipper-card.up .bottom.current {
  90. z-index: 1; }
  91. .flipper-card.up .bottom.next {
  92. box-shadow: 0 75px 5px -20px rgba(0, 0, 0, 0.3);
  93. transform: rotate3d(1, 0, 0, 90deg);
  94. z-index: 2; }
  95. .flipper-card.up.changing .top.current {
  96. transform: rotate3d(1, 0, 0, -90deg);
  97. transition: transform 0.2625s ease-in, box-shadow 0.2625s ease-in; }
  98. .flipper-card.up.changing .bottom.next, .flipper-card.up.changed .bottom.next {
  99. box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  100. transition: box-shadow 0.175s cubic-bezier(0.375, 1.495, 0.61, 0.78) 0.35s, transform 0.35s cubic-bezier(0.375, 1.495, 0.61, 0.78) 0.35s;
  101. transform: rotate3d(1, 0, 0, 0); }
  102. .flipper-card.changed .top.current,
  103. .flipper-card.changed .bottom.current {
  104. display: none; }
  105. /*# sourceMappingURL=style.css.map */