RegisterEffect 注冊的效果可以使用loop選項嗎?
??? $.Velocity.RegisterEffect('rxj.float.game',{
?? ??? ?calls:[
?? ??? ??? ?[{left:600},0.5],
?? ??? ??? ?[{left:0},0.5]
?? ??? ?]
?? ?});
?? ?$('#my').velocity('rxj.float.game',{duration:1000,loop:true});
上面設置loop效果沒有循環效果,下面的有效果:
??? $('#my').velocity({left:600},{duration:1000,loop:true});
請問在自定義動畫里面設置loop循環