javascript - Change current percentage of an infinite running CSS animation -


i want create basic slider on own. sliding works charm, infinite, allow user skip/back specific neighbours (e.g. arrows).

@keyframes slider-ani {   0% { left: 33.3%; }   20% { left: 33.3%; }   25% { left: 0%; }   45% { left: 0%; }   50% { left: -33.3%; }   70% { left: -33.3%; }   100% { left: 33.3%; } } 

is there way maybe put javascript command, telling running animation go next step, e.g. 25% 45%.

i use css3 possible. know easy done in jquery.

jsfiddle

got working css , radio buttons (without keyframes). great because runs without jquery , natively on device. it's way harder create it.

the final result


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -