怎樣才可以做到讓移動端上的touchstart事件每觸摸一次圖片圖片轉動360度, @keyframes spi{
100%{ transform: rotate(360deg);
}
}
$('#ff').off('touchstart').bind('touchstart',function(){
$('#ff').css('animation','spi 3000ms linear ')
});這樣寫只可以觸發(fā)一次,即點擊第一次的時候才有效
javascript中animation運動, 怎樣通過點擊事件讓他重復執(zhí)行
慕村225694
2018-09-05 13:22:53