我想通过无限迭代旋转标签,目前它在 iOS 设备上运行良好,但在 android 上它只旋转 2 秒然后停止。
下面是我的 CSS 代码
.fas {
font-family: "Font Awesome 5 Free", "fa-solid-900";
font-weight: 900;
}
.spin {
animation-name: rotate;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}Run Code Online (Sandbox Code Playgroud)
<Label text="rotate value" class="fas spin"></Label>Run Code Online (Sandbox Code Playgroud)