Use on() and off() to turn the click function on/off :
$('.ele').on('click', animateEle);
function animateEle(e) {
$('.ele').stop().animate({'top':'0px'},2000);
$(e.target).off('click').stop().animate({'top':'100px'},4000, function() {
$(e.target).on('click', animateEle);
});
}?
DEMONSTRATION
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…