我不是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