flip.css 694 B

1234567891011121314151617181920212223242526272829303132
  1. @keyframes flip {
  2. from {
  3. transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
  4. animation-timing-function: ease-out;
  5. }
  6. 40% {
  7. transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
  8. animation-timing-function: ease-out;
  9. }
  10. 50% {
  11. transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
  12. animation-timing-function: ease-in;
  13. }
  14. 80% {
  15. transform: perspective(400px) scale3d(0.95, 0.95, 0.95);
  16. animation-timing-function: ease-in;
  17. }
  18. to {
  19. transform: perspective(400px);
  20. animation-timing-function: ease-in;
  21. }
  22. }
  23. .animated.flip {
  24. backface-visibility: visible;
  25. animation-name: flip;
  26. }