index.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. }
  13. .tab-bar .tab-bar-item {
  14. position: relative;
  15. flex: 1;
  16. text-align: center;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. flex-direction: column;
  21. padding-bottom: 10rpx;
  22. }
  23. .tab-bar .tab-bar-item .noticeTips {
  24. position: absolute;
  25. left: 100rpx;
  26. top: -12rpx;
  27. width: 28rpx;
  28. padding: 4rpx 0rpx;
  29. border-radius: 40rpx;
  30. color: white;
  31. font-size: 16rpx;
  32. text-align: center;
  33. background-color: #FF0000;
  34. }
  35. .tab-bar .tab-bar-item image {
  36. width: 48rpx;
  37. height: 48rpx;
  38. }
  39. .tab-bar .tab-bar-item view {
  40. font-size: 28rpx;
  41. margin-top: 10rpx;
  42. }
  43. .tab-bar .mask {
  44. position: absolute;
  45. top: 0rpx;
  46. width: 100%;
  47. height: 100%;
  48. z-index: 9;
  49. background: rgba(0, 0, 0, 0.7);
  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. }