【发布时间】:2021-07-14 23:26:47
【问题描述】:
我目前正在开发一个可以水平旋转图像的预加载器。
我发现了各种线程和想法,基本上都包含类似的内容:
<style>
.imageRotateHorizontal{
-moz-animation: spinHorizontal 3s infinite linear;
-o-animation: spinHorizontal 3s infinite linear;
-webkit-animation: spinHorizontal 3s infinite linear;
animation: spinHorizontal 3s infinite linear;
}
@keyframes spinHorizontal {
from {
transform: rotateY(0deg);
}
to {
transform: rotateY(359deg);
}
}
</style>
我的问题是,图像就像在中途旋转一样,正如您在我创建的小提琴中看到的那样:https://jsfiddle.net/1hw3xamj/
所以基本上,图像会转动直到镜像,然后再转回来......
不过,我的目标是让它在一个方向上永久旋转,而不是在镜像时转动...
我希望你明白我的意思。
【问题讨论】: