第一個(gè)div1動(dòng)畫實(shí)現(xiàn)了,但是自定義動(dòng)畫不能實(shí)現(xiàn),為什么???一樣的代碼
//~~~~~~~~~~~~如果庫里沒有想要的動(dòng)畫,也可以自定義動(dòng)畫~~~~~~~~~~
$.Velocity.RegisterEffect("lixin.pulse",{
defaultDuration:300,
call:[
[{scaleX:1.2},0.5],
[{scaleX:1.0},0.5]
]
});
$("#b").on("mouseover",function(){
$(this).velocity("lixin.pulse");
});
chrome出錯(cuò)提示:
velocity.ui.min.js:2 ? Uncaught TypeError: Cannot read property 'length' of undefined
2016-04-10
calls不是call
2016-04-12
謝謝,后來我也發(fā)現(xiàn)了 ? 最近眼有點(diǎn)花 :)