modal.css 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @keyframes bounceIn {
  2. 0% {
  3. transform: scale(0.1);
  4. opacity: 0;
  5. }
  6. 60% {
  7. transform: scale(1.2);
  8. opacity: 1;
  9. }
  10. 100% {
  11. transform: scale(1);
  12. }
  13. }
  14. @keyframes bounceOut {
  15. 20% {
  16. transform: scale(1.2);
  17. }
  18. 100% {
  19. transform: scale(0);
  20. opacity: 0;
  21. }
  22. }
  23. @keyframes slideDownIn {
  24. 0% {
  25. opacity: 0;
  26. transform-origin: 0% 0%;
  27. transform: scaleY(.8);
  28. }
  29. 100% {
  30. opacity: 1;
  31. transform-origin: 0% 0%;
  32. transform: scaleY(1);
  33. }
  34. }
  35. @keyframes slideDownOut {
  36. 0% {
  37. opacity: 1;
  38. transform-origin: 0% 0%;
  39. transform: scaleY(1);
  40. }
  41. 100% {
  42. opacity: 0;
  43. transform-origin: 0% 0%;
  44. transform: scaleY(.8);
  45. }
  46. }
  47. .container {
  48. width: 280px;
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. background-color: white;
  53. z-index: 1;
  54. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  55. }
  56. .in {
  57. animation: slideDownIn 0.2s;
  58. }
  59. .out {
  60. animation: slideDownOut 0.2s;
  61. }
  62. .panel {
  63. position: relative;
  64. }