.flipper-card { box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 0.2); height: 300px; left: 50%; line-height: 300px; margin: -150px 0 -100px; perspective: 500px; position: absolute; text-align: center; top: 50%; transform: translateZ(0); width: 200px; } .flipper-card span { background: #202020; color: #f8f8f8; display: block; font-size: 250px; left: 0; position: absolute; top: 0; 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); transform-origin: 0 150px 0; width: 100%; } .flipper-card span:before { border-bottom: 2px solid #000; content: ''; left: 0; position: absolute; width: 100%; } .flipper-card span:after { box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35); content: ''; height: 100%; left: 0; position: absolute; top: 0; width: 100%; } .flipper-card .small { font-size: 175px; } .flipper-card .top { border-top-left-radius: 11px; border-top-right-radius: 11px; box-shadow: inset 0 2px rgba(0, 0, 0, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.4); height: 50%; overflow: hidden; } .flipper-card .top:before { bottom: 0; } .flipper-card .top:after { background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)); border-top-left-radius: 11px; border-top-right-radius: 11px; } .flipper-card .bottom { border-radius: 10px; height: 100%; } .flipper-card .bottom:before { top: 50%; } .flipper-card .bottom:after { border-radius: 10px; background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0)); } .flipper-card.down .top { border-top-left-radius: 11px; border-top-right-radius: 11px; height: 50%; } .flipper-card.down .top.current { transform-style: flat; z-index: 3; } .flipper-card.down .top.next { transform: rotate3d(1, 0, 0, -90deg); z-index: 4; } .flipper-card.down .bottom { border-radius: 10px; } .flipper-card.down .bottom.current { z-index: 2; } .flipper-card.down .bottom.next { z-index: 1; } .flipper-card.down.changing .bottom.current { box-shadow: 0 75px 5px -20px rgba(0, 0, 0, 0.3); transform: rotate3d(1, 0, 0, 90deg); transition: transform 0.35s ease-in, box-shadow 0.35s ease-in; } .flipper-card.down.changing .top.next, .flipper-card.down.changed .top.next { transition: transform 0.35s ease-out 0.35s; transform: none; } .flipper-card.up .top { height: 50%; } .flipper-card.up .top.current { z-index: 4; } .flipper-card.up .top.next { z-index: 3; } .flipper-card.up .bottom.current { z-index: 1; } .flipper-card.up .bottom.next { box-shadow: 0 75px 5px -20px rgba(0, 0, 0, 0.3); transform: rotate3d(1, 0, 0, 90deg); z-index: 2; } .flipper-card.up.changing .top.current { transform: rotate3d(1, 0, 0, -90deg); transition: transform 0.2625s ease-in, box-shadow 0.2625s ease-in; } .flipper-card.up.changing .bottom.next, .flipper-card.up.changed .bottom.next { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); 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; transform: rotate3d(1, 0, 0, 0); } .flipper-card.changed .top.current, .flipper-card.changed .bottom.current { display: none; } /*# sourceMappingURL=style.css.map */