jquery圆形气泡导航特效特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jquery圆形气泡导航特效特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jquery圆形气泡导航特效特效代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Awesome Bubble Navigation with jQuery</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Awesome Bubble Navigation with jQuery" />
<meta name="keywords" content="jquery, circular menu, navigation, round, bubble"/>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
<style>
* { margin:0; padding:0; }
body { font-family:Arial; background:#fff url(images/bg.png) no-repeat top left; }
.title { width:548px; height:119px; position:absolute; top:400px; left:150px; background:transparent url(title.png) no-repeat top left; }
a.back { background:transparent url(back.png) no-repeat top left; position:fixed; width:150px; height:27px; outline:none; bottom:0px; left:0px; }
#content { margin:0 auto; }
</style>
</head>
<body>
<div id="content">
  <div class="title"></div>
  <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 class="item home"> <img src="images/bg_home.png" alt="" width="199" height="199" class="circle"/> <a href="#" class="icon"></a>
      <h2>Home</h2>
      <ul>
        <li><a href="#">Portfolio</a></li>
        <li><a href="#">Services</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
    </div>
    <div class="item shop"> <img src="images/bg_shop.png" alt="" width="199" height="199" class="circle"/> <a href="#" class="icon"></a>
      <h2>Shop</h2>
      <ul>
        <li><a href="#">Catalogue</a></li>
        <li><a href="#">Orders</a></li>
        <li><a href="#">Offers</a></li>
      </ul>
    </div>
    <div class="item camera"> <img src="images/bg_camera.png" alt="" width="199" height="199" class="circle"/> <a href="#" class="icon"></a>
      <h2>Photos</h2>
      <ul>
        <li><a href="#">Gallery</a></li>
        <li><a href="#">Prints</a></li>
        <li><a href="#">Submit</a></li>
      </ul>
    </div>
    <div class="item fav"> <img src="images/bg_fav.png" alt="" width="199" height="199" class="circle"/> <a href="#" class="icon"></a>
      <h2>Love</h2>
      <ul>
        <li><a href="#">Social</a></li>
        <li><a href="#">Support</a></li>
        <li><a href="#">Comments</a></li>
      </ul>
    </div>
  </div>
</div>

<!-- The JavaScript -->
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript">
            $(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');
                }
            );
            });
        </script>
</body>
</html>







CSS代码(style.css):

.navigation{margin:0px auto;font-family:"Trebuchet MS",sans-serif;font-size:24px;font-style:normal;font-weight:bold;letter-spacing:1.4px;}
.navigation .item{position:absolute;}
.user{top:125px;left:110px;}
.home{top:50px;left:360px;}
.shop{top:90px;left:625px;}
.camera{top:230px;left:835px;}
.fav{top:420px;left:950px;}
a.icon{width:52px;height:52px;position:absolute;top:0px;left:0px;cursor:pointer;}
.user a.icon{background:transparent url(../images/user.png) no-repeat 0px 0px;}
.home a.icon{background:transparent url(../images/home.png) no-repeat 0px 0px;}
.shop a.icon{background:transparent url(../images/shop.png) no-repeat 0px 0px;}
.camera a.icon{background:transparent url(../images/camera.png) no-repeat 0px 0px;}
.fav a.icon{background:transparent url(../images/fav.png) no-repeat 0px 0px;}
.navigation .item a.active{background-position:0px -52px;}
.item img.circle{position:absolute;top:0px;left:0px;width:52px;height:52px;opacity:0.1;}
.item h2{position:absolute;width:147px;height:52px;color:#222;font-size:18px;top:0px;left:52px;text-indent:10px;line-height:52px;text-shadow:1px 1px 1px #fff;text-transform:uppercase;}
.item h2.active{color:#fff;text-shadow:1px 0px 1px #555;}
.item ul{list-style:none;position:absolute;top:60px;left:25px;display:none;}
.item ul li a{font-size:15px;text-decoration:none;letter-spacing:1.5px;text-transform:uppercase;color:#222;padding:3px;float:left;clear:both;width:100px;text-shadow:1px 1px 1px #fff;}
.item ul li a:hover{background-color:#fff;color:#444;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:1px 1px 4px #666;-webkit-box-shadow:1px 1px 4px #666;box-shadow:1px 1px 4px #666;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
132.94 KB
Html Js 菜单导航特效2
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章