Reputation: 483
The following CSS should theoretically work in the newest Chrome build... strangely enough, the opacity is animated properly but transform:rotate is ignored. Can this not be transitioned?
@-webkit-keyframes offblink {
0% {
-webkit-transform: rotate(45deg);
opacity: 0;
}
50% {
-webkit-transform: rotate(180deg);
opacity: 1;
}
100% {
-webkit-transform: rotate(270deg);
opacity: 0;
}
}
.test {
-webkit-animation-name: offblink;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
Upvotes: 1
Views: 166
Reputation: 483
Solved. I had this test-case:
<div>anim only this: <span class="test">+</span></div>
Only worked with adding this:
.test { display: inline-block; }
Upvotes: 2