0
我需要第二个点击函数返回( - = 550px)。就像现在这个图形一直在继续。jQuery动画返回到开始状态
下面的代码:
$(document).ready(function(){
$("#busoptbio").hide();
$("#current").click(function() {
$("#busoptbio").show();
$("#busoptbio").animate({left: '+=340px'}, 1200);
return false;
});
$("#busoptbiolnk a").click(function(){
$("#busoptbio").animate({left: '+=550px'}, 1200);
}, function() {
$("#busoptbio").animate({left: '-=550px'}, 1200);
return false;
});
});
感谢您的帮助。
太感谢你了! – Andrea