animate.css动画 循环播放出现衔接不上的问题.感觉有卡顿
.hinge {
-webkit-animation-name: hinge;
animation-name: hinge;
-webkit-animation-iteration-count:10;
animation-iteration-count:10;
1% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
20% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
40% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
60% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
80% {
-webkit-transform: rotate(0deg) translateY(0);
transform: rotate(0deg) translateY(0);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
opacity: 1;
}
100% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
-webkit-animation-name: hinge;
animation-name: hinge;
-webkit-animation-iteration-count:10;
animation-iteration-count:10;
}
1% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
20% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
40% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
60% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
80% {
-webkit-transform: rotate(0deg) translateY(0);
transform: rotate(0deg) translateY(0);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
opacity: 1;
}
100% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-webkit-animation-direction:alternate; /* Safari 和 Chrome */
貌似这个可以解决
不晓得是不是完美的解决方案