小编vin*_*ain的帖子

Nativescript旋转动画无限迭代不起作用

我想通过无限迭代旋转标签,目前它在 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)

javascript android webview typescript nativescript

2
推荐指数
1
解决办法
620
查看次数

标签 统计

android ×1

javascript ×1

nativescript ×1

typescript ×1

webview ×1