最新赞助活动温馨提示:自愿赞助服务器费用,学生和没有工作的整站资源免费下载!
头像

jQuery环状圆形菜单

来源:http://www.erdangjiade.com/ 沐浴春风 2015-12-25 20:42浏览(1529)

这是一个基于easing动画插件的圆形气泡菜单插件。当鼠标悬浮圆形菜单上,菜单会变成一个更大的菜单。

0、请不要问“在不在”之类的问题,有问题直接问!1、学生或暂时没有工作的童鞋,整站资源免费下载!2、¥9.9充值终身VIP会员,加我微信,826096331 拉你进VIP群学习!3、程序员加油,技术改变世界。在线 充值

jQuery环状圆形菜单
分类:导航菜单 > 滑动导航 难易:中级
查看演示

加我微信,拉你进VIP群学习:

下载资源 下载积分: 30 积分

圆形菜单html

<div class="navigation" id="nav">
    <div class="item user">
        <img src="images/bg_user.png" alt="" width="199" height="199" class="circle"/>
        <a href="#" class="icon"></a>
        <h2>User</h2>
        <ul>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Properties</a></li>
            <li><a href="#">Privacy</a></li>
        </ul>
    </div>
</div>

引入easing动画插件

<script type="text/javascript" src="jquery.easing.1.3.js"></script>

悬浮和离开菜单效果

$(function() {
    $('#nav > div').hover(
            function() {
                var $this = $(this);
                $this.find('img').stop().animate({
                    'width': '199px',
                    'height': '199px',
                    'top': '-25px',
                    'left': '-25px',
                    'opacity': '1.0'
                }, 500, 'easeOutBack', function() {
                    $(this).parent().find('ul').fadeIn(700);
                });

                $this.find('a:first,h2').addClass('active');
            },
            function() {
                var $this = $(this);
                $this.find('ul').fadeOut(500);
                $this.find('img').stop().animate({
                    'width': '52px',
                    'height': '52px',
                    'top': '0px',
                    'left': '0px',
                    'opacity': '0.1'
                }, 5000, 'easeOutBack');

                $this.find('a:first,h2').removeClass('active');
            }
    );
});
标签: 圆形
声明:本文为原创文章,如需转载,请注明来源erdangjiade.com并保留原文链接:https://www.erdangjiade.com/js/614.html
评论0
头像

友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群

1 2