wxml:
<view class="box1">
<view class="text">
11111111111111111
</view>
</view>
wxss:
.box1 {
width: 100%;
position: relative;
white-space: nowrap;
}
.text {
white-space: nowrap;
position: absolute;
font-size: 24rpx;
animation: around 10s infinite linear;
}
@keyframes around {
from {
left: 100%;
right: 1%;
}
to {
left: -150%;
}
}