Researching I've found an answer to my question. We need to use the rotateY
attribute for the -webkit-transform
CSS property.
.imageRotateHorizontal{
-moz-animation: spinHorizontal .8s infinite linear;
-o-animation: spinHorizontal .8s infinite linear;
-webkit-animation: spinHorizontal .8s infinite linear;
animation: spinHorizontal .8s infinite linear;
}
@keyframes spinHorizontal {
0% { transform: rotateY(0deg); }
100% { transform: rotateY(360deg); }
}
/* Vendor specific keyframes go here */
Additionally, we have to define an animation with a reasonable time. For example I'm going to set the animation to 0.8 seconds. It means that our image are going to perform a complete rotation each 0.8 seconds.
I've prepared a jsFiddle showing the complete code width an example: http://jsfiddle.net/AB277/7/