Hi I would like to know how to get the current TranslateX of a css3 animation.
I have this animation:
@-webkit-keyframes pictureTransition {
from,5% {-webkit-transform:translateX(0px);}
10%,25% {-webkit-transform:translateX(-1024px);}
30%,45% {-webkit-transform:translateX(-2048px);}
50%,65% {-webkit-transform:translateX(-3072px);}
70%,85% {-webkit-transform:translateX(-4096px);}
90%,to {-webkit-transform:translateX(-5120px);}
}
and I have a button that when clicked, will get the current translateX in the animation and save it in a variable for further use. Any ideas?