首页

源码搜藏网

首页 > 网页特效 > 菜单导航 >

仿爱淘宝分类伸缩jQuery导航

创建时间:2015-01-06 08:21  

仿爱淘宝分类伸缩jQuery导航
仿爱淘宝分类伸缩jQuery导航
效果预览 立即下载
仿爱淘宝分类伸缩jQuery导航仿爱淘宝分类伸缩jQuery导航是一款仿爱淘宝分类栏目伸缩展开的jQuery导航代码。

<script type="text/javascript">
    $(function(){
        $('.navRight li').mouseenter(function(){
            $(this).children('span').css('transform','rotate(135deg)');
        }).mouseleave(function(){
            $(this).children('span').css('transform','rotate(-45deg)');
        })
        $('.fenlei ul li').mouseenter(function(){
            $(this).stop().animate({'height':'289px'},300).siblings().stop().animate({'height':'44px'},300);
            $(this).siblings().css('background','#F5F5F5');
            $('.fenleiright').fadeTo(0,0.8).stop().animate({'width':'289px'},300);
        }).mouseleave(function(){
            $('.fenlei ul li').stop().animate({'height':'79px'},300)
            $(this).siblings().css('background','#ffffff');
        });
        $('.navLeft').mouseleave(function(){
            $('.fenleiright').stop().animate({'width':'0px'},300);
        })
    })
</script>
上一篇:jQuery制作的底部弹出缩略图导航菜单
下一篇:jquery点击弹出图标环形菜单代码

相关内容

热门推荐