thednp/jQueryTween: 请问有没有类似onComplete的事件?
thednp/jQueryTween: I would like to know if there is something like onComplete event?
https://github.com/thednp/jQueryTween
我正在使用这个 JQuery 插件,我现在一直在寻找像 onComplete 这样的事件。有人经历过吗?
$('#object1').jQueryTween({
from: {
translate: {
x: 500
}
},
to: {
translate: {
y: 0
},
rotate: {
z: -360
}
},
duration: 3000,
easing: TWEEN.Easing.Exponential.Out
}).onComplete({ console.log("done") }); //I would like to know how to do something like this
$('#object1').jQueryTween({
from: {
translate: {
x: 500
}
},
to: {
translate: {
y: 0
},
rotate: {
z: -360
}
},
duration: 3000,
easing: TWEEN.Easing.Exponential.Out
},
// callback when tween is finished
function() {
// do some cool stuff when tween finished animating
console.log("done")
}
);
我刚刚从 github 中删除了 KUTE.js 的 jQuery 存储库。
看看https://github.com/thednp/kute.js
这里有演示、文档和示例http://thednp.github.io/kute.js
https://github.com/thednp/jQueryTween
我正在使用这个 JQuery 插件,我现在一直在寻找像 onComplete 这样的事件。有人经历过吗?
$('#object1').jQueryTween({
from: {
translate: {
x: 500
}
},
to: {
translate: {
y: 0
},
rotate: {
z: -360
}
},
duration: 3000,
easing: TWEEN.Easing.Exponential.Out
}).onComplete({ console.log("done") }); //I would like to know how to do something like this
$('#object1').jQueryTween({
from: {
translate: {
x: 500
}
},
to: {
translate: {
y: 0
},
rotate: {
z: -360
}
},
duration: 3000,
easing: TWEEN.Easing.Exponential.Out
},
// callback when tween is finished
function() {
// do some cool stuff when tween finished animating
console.log("done")
}
);
我刚刚从 github 中删除了 KUTE.js 的 jQuery 存储库。
看看https://github.com/thednp/kute.js
这里有演示、文档和示例http://thednp.github.io/kute.js