- 博客(0)
- 资源 (4)
空空如也
手风琴效果展示
很容易修改的手风琴效果
$(function(){
$(".voice_2 ul li").each(function(){
var fold = $(this).find(".fold");
var unfold = $(this).find(".unfold");
if(fold.is(":hidden")){
$(this).width(680);
}else{
$(this).width(100);
}
})
$(".voice_2 ul li").click(function(){
var li_index = $(this).index();
$(this).animate({width:680},200);
$(this).find(".unfold").show();
$(this).find(".fold").hide();
$(this).siblings().animate({width:100},200);
$(this).siblings().find(".unfold").hide();
$(this).siblings().find(".fold").show();
})
})
2015-08-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人