第二个动画没有实现呢
$.Velocity.RegisterEffect('sun.pulse', {
defaultDuration : 300,
calls : [
// scaleX 0.5 在300毫秒中所占的比例
//在前50%之前 沿X轴 放大1.1倍 后50% 缩回原来的尺寸
[{scaleX : 1.1}, 0.5]
[{scaleX : 1.0}, 0.5]
]
});
$('#div2').on('mouseover', function () {
$(this).velocity('sun.pulse');
});
报错提示
velorcity.ui.js:121 Uncaught TypeError: Cannot read property '0' of undefined
ui.js的错误地方
/* Iterate through each effect's call array. */
for (var callIndex = 0; callIndex < properties.calls.length; callIndex++) {
var call = properties.calls[callIndex],
propertyMap = call[0],
redirectDuration = 1000,
durationPercentage = call[1],
callOptions = call[2] || {},
opts = {};
搞不懂呀搞不懂 难道是我的ui.js整错了?