我不是jQuery專業版,但我儘可能多地對它進行了採樣。連續激活div
小提琴演示:DEMO
我要連續3個激活動畫。
步驟:
- 展開從200到250中的導航的div乙從500
- 的速度。然後,導航DIV甲從頂部0移動到頂部50
與此同時如2.最後滑動子導航div C從頂部-50到頂部50
當我點擊另一個導航div時,步驟1-3向後關閉。
$(function(){ $('.a').click( function(){ $(".b").stop().animate( {width:"250px"}, 500, function(){ $('.b').stop().animate({width:"toggle"}); } ); }, $(".a").stop().animate( {top:"50px"}, 500, function(){ $('.b').stop().animate({top:"toggle"}); } ); }, function(){ $('.c').stop().animate( {show:"yes"}, 500, function(){ $(".a").stop().animate( {backgroundPosition:"left 0"} ,500 ) } ); } ); });
有沒有解決我的問題的任何解決方案?
請看圖片在小提琴:) THX
非常感謝你! – andre34