I've got the following keyframe animation,
@-webkit-keyframes rotate {
from {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
transform: rotateY(0);
}
to {
-webkit-transform: rotateX(2160deg);
-moz-transform: rotateX(2160deg);
transform: rotateX(2160deg);
}
}
Now under a certain condition, I'd like to change the to {} part of this animation, and then the rotation.
I'd like to achieve this using .css (?). How would I do this without using multiple animation, but just change the CSS instead?
jQuery- I want to make the animation more random, so I will have aRandom(10) * 180degor something, I want it to be randomized, and not always be the exact same.