loading.wxss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* templates/loading/loading.wxss */
  2. page{
  3. background: #FFC674;
  4. }
  5. .loading {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 100%;
  11. background: #FFC674;
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: center;
  15. align-items: center;
  16. }
  17. .loading-img {
  18. margin: 50rpx auto;
  19. width: 60%;
  20. position: relative;
  21. padding-bottom: 120rpx;
  22. }
  23. .loading-img::after {
  24. content: "";
  25. position: absolute;
  26. bottom: 0;
  27. left: 0;
  28. height: 6rpx;
  29. width: 10%;
  30. background: #000000;
  31. border-radius: 20rpx;
  32. animation: line 2s infinite ease-in-out;
  33. }
  34. .loading-img image {
  35. width: 162rpx;
  36. height: 171rpx;
  37. animation: loading 2s infinite ease-in-out;
  38. }
  39. .loading-text {
  40. color: #000000;
  41. font-weight: 600;
  42. }
  43. @keyframes loading {
  44. 10% {
  45. transform: translateX(10%)
  46. }
  47. 50% {
  48. transform: translateX(250%)
  49. }
  50. 70% {
  51. transform: translateX(250%) rotate(180deg)
  52. }
  53. 90% {
  54. transform: translateX(10%) rotate(180deg)
  55. }
  56. 100% {
  57. transform: translateX(10%) rotate(0deg)
  58. }
  59. }
  60. @keyframes line {
  61. 10% {
  62. width: 10%;
  63. }
  64. 50%, 70% {
  65. width: 98%;
  66. }
  67. 90%, 100% {
  68. width: 10%;
  69. }
  70. }
  71. .loading-img{
  72. width: 417rpx;
  73. height: 180rpx;
  74. }