我想使用此代碼鏈接:http://codepen.io/kindofone/pen/scuwD但我怎樣才能使動畫重複一遍又一遍。如何讓這個彈跳球動畫代碼做無限重複?
var Bouncer = function(elem) {
// init bouncable element and helpers
this.$elem = $(elem);
this.$ball = $('<div class="ball"></div>');
this.$space = $('<span> </span>');
this.timers = [];
// handle in-place editing events
this.$elem.on('blur', (function(instance) {
return function() {
instance.init();
instance.bounce();
};
})(this));
這是鏈接的代碼 http://codepen.io/kindofone/pen/scuwD
我想利用這個代碼,但我怎樣才能一次又一次地使動畫重複。提前
謝謝:)
哇,你真棒謝謝你:) –
@李文如果答案是真棒考慮接受它。請[參觀]瞭解這些網頁的工作原理。 –