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.
got working css , radio buttons (without keyframes). great because runs without jquery , natively on device. it's way harder create it.
Comments
Post a Comment