batteryPackWait.wxss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* pages/batteryPack/batteryPackWait.wxss */
  2. page{
  3. display: flex;
  4. flex-direction: column;
  5. }
  6. .car{
  7. margin-top:5%;
  8. width:100%;
  9. padding: 0;
  10. }
  11. .txt{
  12. /* color: rgba(33, 173, 255, 1); */
  13. font-size: 40rpx;
  14. text-align: center;
  15. }
  16. .loading{
  17. margin-top:10%;
  18. height:40rpx;
  19. display: flex;
  20. justify-content: space-between;
  21. width: 30%;
  22. margin-left: 35%;
  23. }
  24. .loading .loader-circle {
  25. width: 20rpx;
  26. height: 20rpx;
  27. border-radius: 50%;
  28. background-color: #93dffb; /*淡蓝*/
  29. animation-duration: 2s;
  30. animation-name: loadingCircle;
  31. animation-iteration-count: infinite;
  32. animation-timing-function: ease-in-out;
  33. opacity: 0;
  34. }
  35. @keyframes loadingCircle {
  36. 0%, 100% {
  37. transform: scale(1);
  38. opacity: 0.5;
  39. }
  40. 16.67% { /* 每个元素动画开始的时间点 */
  41. opacity: 0.5;
  42. }
  43. 33.33% {
  44. transform: scale(1.3);
  45. background-color: #27bef7; /*深蓝*/
  46. }
  47. 50% {
  48. transform: scale(1.6);
  49. opacity: 0.9;
  50. }
  51. }
  52. /* 确保每个圆按照顺序开始动画 */
  53. .loading .loader-circle:nth-child(1) {
  54. animation-delay: 0s;
  55. }
  56. .loading .loader-circle:nth-child(2) {
  57. animation-delay: 0.2s;
  58. }
  59. .loading .loader-circle:nth-child(3) {
  60. animation-delay: 0.4s;
  61. }
  62. .loading .loader-circle:nth-child(4) {
  63. animation-delay: 0.6s;
  64. }
  65. .loading .loader-circle:nth-child(5) {
  66. animation-delay: 0.8s;
  67. }