.preload-item { width: 100%; height: 103rpx; box-sizing: border-box; padding: 0 20rpx; overflow: hidden; } .preload-item .top { width: 100%; display: flex; justify-content: space-between; align-items: center; height: 47rpx; box-sizing: border-box; padding-left: 54rpx; margin-top: 19rpx; } .preload-item .top .name { height: 20rpx; width: 60%; border-radius: 6rpx; background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); animation: loading 1.4s ease infinite; background-size: 400% 100%; } .preload-item .top .count { height: 20rpx; width: 10%; border-radius: 6rpx; background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); animation: loading 1.4s ease infinite; background-size: 400% 100%; } .preload-item .bottom { width: 100%; height: 37rpx; position: relative; } .preload-item .bottom .order { width: 54rpx; height: 54rpx; box-shadow:0px 3px 18px 0px rgba(211,211,211,0.63); border-radius: 50%; position: absolute; left: 0; top: -20rpx; z-index: 100; background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); animation: loading 1.4s ease infinite; background-size: 400% 100%; } .preload-item .bottom .progress { width: 100%; height: 20rpx; background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); animation: loading 1.4s ease infinite; background-size: 400% 100%; } @keyframes loading { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } } /** background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); animation: loading 1.4s ease infinite; background-size: 400% 100%; */