css3 动画执行冲突
下面贴代码.awl{position:absolute;left:0;top:50%;width:7.8125%;animation:1.5sease0snormalbo...
下面贴代码
.awl{position:absolute; left:0; top:50%; width:7.8125%;animation: 1.5s ease 0s normal both infinite toLeft;-webkit-animation: 1.5s ease 0s normal both infinite toLeft;}
.awr{position:absolute; right:0; top:50%; width:7.8125%;animation: 1.5s ease 0s normal both infinite moveToRight;-webkit-animation: 1.5s ease 0s normal both infinite moveToRight;}
@-webkit-keyframes toLeft {
0% {
transform:translateX(0);
}
100% {
transform:translateX(-100%);
}
}
@keyframes toLeft{
0% {
transform:translateX(0);
}
100% {
transform: translateX(-100%);
}
}
@-webkit-keyframes moveToRight {
0% {
transform:translateX(0);
}
100% {
transform: translateX(100%);
}
}
@keyframes moveToRight {
0% {
transform:translateX(0);
}
100% {
transform: translateX(100%);
}
}
不知道问题出在哪里,moveToRight会反复执行 展开
.awl{position:absolute; left:0; top:50%; width:7.8125%;animation: 1.5s ease 0s normal both infinite toLeft;-webkit-animation: 1.5s ease 0s normal both infinite toLeft;}
.awr{position:absolute; right:0; top:50%; width:7.8125%;animation: 1.5s ease 0s normal both infinite moveToRight;-webkit-animation: 1.5s ease 0s normal both infinite moveToRight;}
@-webkit-keyframes toLeft {
0% {
transform:translateX(0);
}
100% {
transform:translateX(-100%);
}
}
@keyframes toLeft{
0% {
transform:translateX(0);
}
100% {
transform: translateX(-100%);
}
}
@-webkit-keyframes moveToRight {
0% {
transform:translateX(0);
}
100% {
transform: translateX(100%);
}
}
@keyframes moveToRight {
0% {
transform:translateX(0);
}
100% {
transform: translateX(100%);
}
}
不知道问题出在哪里,moveToRight会反复执行 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询