Reputation: 578
I'd like to define a class whose CSS3 transition is only applied to the translate3d transform, and not any other transform (rotate, translate, etc). Is this possible? If so, what's the syntax? Something like this:
.animatedMarker {
transition: transform:translate3d 1s linear;
/* transition is only applied to translate3d transformation, so rotate, translate, etc. won't be animated */
}
Upvotes: 3
Views: 7021
Reputation: 11593
You can not transition only translate3d, however you can keep the rest unaltered:
transform: translate3d(0, 0, 0) skew(45deg) rotate(23deg);
and on hover
transform: translate3d(100px, 0, 0) skew(45deg) rotate(23deg);
Upvotes: 3