2
我有两个具有相同动画但不同变换元素的元素,但它们的操作方式相同。不同元素具有不同的变换原点的相同css动画
.face1 {
animation: eat .5s ease-in-out infinite alternate both;
-webkit-animation: eat .5s ease-in-out infinite alternate both;
}
.face2 {
animation: eat .5s 0s ease-in-out infinite alternate both;
-webkit-animation: eat .5s ease-in-out infinite alternate both;
-webkit-transform-origin: bottom right !important;
transform-origin: bottom right !important
}
This is a fiddle
正如你所看到的第二头的行为像第一次无视变换原点的.face2 CSS
我该如何解决这个问题?
我可以避免编写2个分离的动画吗?