I find myself struggling with my math skills from junior high.
My goal is to rotate two div
s around the Y axis in opposite directions. I have set up two animations for this purpose:
@-webkit-keyframes first{
0% { -webkit-transform: rotateY(0); }
100% { -webkit-transform: rotateY(-90deg); }
}
@-webkit-keyframes second{
0% { -webkit-transform: rotateY(0);}
100% { -webkit-transform: rotateY(90deg); }
}
There seems to be some confusion regarding my initial fiddle, so I have added an image to clarify. Each of the two div
's will showcase half of the image. My intention was for each half to rotate in opposite directions around the y-axis until they both disappear. However, it appears that they are rotating together rather than independently.
Here is the fiddle (compatible with Chrome only):