index.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. background: white;
  7. display: flex;
  8. box-sizing: border-box;
  9. padding: 14rpx 0rpx;
  10. padding-bottom: calc(env(safe-area-inset-bottom) + 14rpx);
  11. box-shadow: rgba(0, 0, 0, 0.35) 0px 30rpx 20rpx 20rpx;
  12. .tab-bar-item {
  13. position: relative;
  14. flex: 1;
  15. text-align: center;
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. flex-direction: column;
  20. padding-bottom: 10rpx;
  21. .noticeTips {
  22. position: absolute;
  23. left: 100rpx;
  24. top: -12rpx;
  25. width: 28rpx;
  26. padding: 4rpx 0rpx;
  27. border-radius: 40rpx;
  28. color: white;
  29. font-size: 16rpx;
  30. text-align: center;
  31. background-color: #FF0000;
  32. }
  33. image {
  34. width: 48rpx;
  35. height: 48rpx;
  36. }
  37. view {
  38. font-size: 28rpx;
  39. margin-top: 10rpx;
  40. }
  41. }
  42. .mask {
  43. position: absolute;
  44. top: 0rpx;
  45. width: 100%;
  46. height: 100%;
  47. z-index: 9;
  48. background: rgba(0, 0, 0, 0.7);
  49. }
  50. }
  51. .bounce {
  52. animation: elasticity 1.2s linear;
  53. }
  54. /* Q弹动画关键帧 */
  55. @keyframes elasticity {
  56. 0% {
  57. transform: matrix3d(0.92, 0, 0, 0, 0, 0.92, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  58. }
  59. 3.4% {
  60. transform: matrix3d(0.938, 0, 0, 0, 0, 0.933, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  61. }
  62. 4.7% {
  63. transform: matrix3d(0.945, 0, 0, 0, 0, 0.94, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  64. }
  65. 6.81% {
  66. transform: matrix3d(0.95, 0, 0, 0, 0, 0.956, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  67. }
  68. 9.41% {
  69. transform: matrix3d(0.942, 0, 0, 0, 0, 1.084, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  70. }
  71. 10.21% {
  72. transform: matrix3d(0.971, 0, 0, 0, 0, 1.113, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  73. }
  74. 13.61% {
  75. transform: matrix3d(1.062, 0, 0, 0, 0, 1.166, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  76. }
  77. 14.11% {
  78. transform: matrix3d(1.07, 0, 0, 0, 0, 1.165, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  79. }
  80. 17.52% {
  81. transform: matrix3d(1.104, 0, 0, 0, 0, 1.12, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  82. }
  83. 18.72% {
  84. transform: matrix3d(1.106, 0, 0, 0, 0, 1.094, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  85. }
  86. 21.32% {
  87. transform: matrix3d(1.098, 0, 0, 0, 0, 1.035, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  88. }
  89. 24.32% {
  90. transform: matrix3d(1.075, 0, 0, 0, 0, 0.98, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  91. }
  92. 25.23% {
  93. transform: matrix3d(1.067, 0, 0, 0, 0, 0.969, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  94. }
  95. 29.03% {
  96. transform: matrix3d(1.031, 0, 0, 0, 0, 0.948, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  97. }
  98. 29.93% {
  99. transform: matrix3d(1.024, 0, 0, 0, 0, 0.949, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  100. }
  101. 35.54% {
  102. transform: matrix3d(0.99, 0, 0, 0, 0, 0.981, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  103. }
  104. 36.74% {
  105. transform: matrix3d(0.986, 0, 0, 0, 0, 0.989, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  106. }
  107. 41.04% {
  108. transform: matrix3d(0.98, 0, 0, 0, 0, 1.011, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  109. }
  110. 44.44% {
  111. transform: matrix3d(0.983, 0, 0, 0, 0, 1.016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  112. }
  113. 52.15% {
  114. transform: matrix3d(0.996, 0, 0, 0, 0, 1.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  115. }
  116. 59.86% {
  117. transform: matrix3d(1.003, 0, 0, 0, 0, 0.995, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  118. }
  119. 63.26% {
  120. transform: matrix3d(1.004, 0, 0, 0, 0, 0.996, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  121. }
  122. 75.28% {
  123. transform: matrix3d(1.001, 0, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  124. }
  125. 85.49% {
  126. transform: matrix3d(0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  127. }
  128. 90.69% {
  129. transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  130. }
  131. 100% {
  132. transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  133. }
  134. }