가 jQuery를 내가 목록의 일부 항목에 애니메이션을 작성했습니다되어 간단하게 만들 수 있습니다많이 나는이
$("#titleTile").delay(5000).animate({top: "160px"}, 300, function() {
$(".tweet_msg.t0").animate({top: 0, height: "show"}, 300, function() {
$(".tweet_msg.t1").delay(5000).animate({top: 0, height: "show"}, 300, function() {
$(".tweet_msg.t2").delay(5000).animate({top: 0, height: "show"}, 300, function() {
$(".tweet_msg.t3").delay(5000).animate({top: 0, height: "show"}, 300, function() {
$(".tweet_msg.t4").delay(5000).animate({top: 0, height: "show"}, 300);
});
});
});
});
});
내 코드를 작성할 수있는 더 나은 방법이 있나요?
두 번째로 내가 호출 할 수있는 함수로 마무리 할 수 있습니까?
가능 중복 (http://stackoverflow.com/questions/6829413/a-non-nested-animation-sequence-in-jquery) –
있을 당신은 HTML을 사용하여 쉽게 사용할 수 있습니다. 성? 더 나은 아직, 당신은 당신이하려고하는 작업 jsfiddle.net 버전을 만들어야합니다. 나는 너를 그렇게 잘 도울 수있다. – einar