I have a slideshow made with css3 animation like this:
@-keyframes animBanner
{
0% {top: 0px;}
18% {top: 0px;}
20% {top: -60px;}
38% {top: -60px;}
40% {top: -120px;}
58% {top: -120px;}
60% {top: -180px;}
78% {top: -180px;}
80% {top: -240px;}
98% {top: -240px;}
100% {top: 0px;}
}
I want to add controls to it, so you can go to the pic you want.
I can trigger transition events with a simple javascript like this:
var p=document.getElementById('elemId');
p.style.left= '50%';
but it doesn't work with animation. Is it possible to make this work or should I use jquery for the animation?