index.wxss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .mediaBox {
  2. position: fixed;
  3. top: 0px;
  4. left: 0px;
  5. width: 100vw;
  6. height: 100vh;
  7. display: flex;
  8. justify-content: center;
  9. background-color: rgba(0, 0, 0, 0.35);
  10. }
  11. .mediaBox .media {
  12. position: relative;
  13. margin-top: 200rpx;
  14. width: 480rpx;
  15. height: 620rpx;
  16. padding: 24rpx;
  17. box-sizing: border-box;
  18. background-color: #FEF2C7;
  19. border-radius: 20rpx;
  20. }
  21. .mediaBox .media .close {
  22. position: absolute;
  23. right: -50rpx;
  24. top: -50rpx;
  25. width: 58rpx;
  26. height: 58rpx;
  27. }
  28. .mediaBox .media .body {
  29. position: relative;
  30. width: 100%;
  31. height: 100%;
  32. padding: 24rpx 0rpx 30rpx;
  33. text-align: center;
  34. box-sizing: border-box;
  35. background-color: white;
  36. border-radius: 20rpx;
  37. }
  38. .mediaBox .media .body .title {
  39. font-size: 38rpx;
  40. letter-spacing: 4rpx;
  41. }
  42. .mediaBox .media .body .falsh {
  43. position: absolute;
  44. bottom: 20rpx;
  45. left: -95rpx;
  46. width: 570rpx;
  47. height: 570rpx;
  48. animation: falsh-identifier 4.5s infinite linear;
  49. }
  50. .mediaBox .media .body .mediaImg {
  51. position: relative;
  52. z-index: 2;
  53. padding: 70rpx 0rpx 60rpx;
  54. width: 274rpx;
  55. height: 240rpx;
  56. animation: falsh-scale 2s infinite linear;
  57. }
  58. .mediaBox .media .body .see {
  59. position: relative;
  60. z-index: 2;
  61. display: inline-block;
  62. padding: 14rpx 66rpx;
  63. font-size: 30rpx;
  64. background-image: linear-gradient(270deg, #FC5556 0%, #F84041 100%, #14C962 100%);
  65. box-shadow: 0 6rpx 14rpx 0 rgba(251, 79, 80, 0.76);
  66. border-radius: 50rpx;
  67. color: white;
  68. }
  69. /* 转圈动画 */
  70. @keyframes falsh-identifier {
  71. 0% {
  72. transform: rotate(0deg) scale(0.7);
  73. }
  74. 50% {
  75. transform: rotate(180deg) scale(1);
  76. }
  77. 100% {
  78. transform: rotate(360deg) scale(0.7);
  79. }
  80. }
  81. @keyframes falsh-scale {
  82. 0% {
  83. transform: scale(1);
  84. }
  85. 50% {
  86. transform: scale(1.2);
  87. }
  88. 100% {
  89. transform: scale(1);
  90. }
  91. }