jQuery+CSS3侧边弹出菜单特效代码

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

以下是 jQuery+CSS3侧边弹出菜单特效代码 的示例演示效果:

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

部分效果截图:

jQuery+CSS3侧边弹出菜单特效代码

HTML代码(index.html):

<!doctype html>
<html>
<head>
<meta charset="gb2312">
<meta name="viewport" content="width=device-width">
<title>jQuery+CSS3侧边弹出菜单</title>
<link rel="stylesheet" type="text/css" href="font/exo-demibold/stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/animation.css">
<link rel="stylesheet" type="text/css" href="css/orchid/style.css">
<link rel="stylesheet" type="text/css" href="css/orchid/color.css">

<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>

</head>

<!--[if lte IE 9]>
    <style type="text/css">
		.nav li:hover > a{
			background-color:rgb(51,51,51);
		}
		img{
			background-color:rgb(255,255,255);
		}

	</style>
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/font-awesome-ie7.min.css" />
<![endif]-->

<body>

<ul class="nav">
  
  <!-- Start Home -->
  <li id="first"><a href="#"><i class="icon-home"></i>Home</a>
    <ul class="one" id="home">
      <li>
        <h3>Welcome</h3>
        <p id="p-first">In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page.</p>
        <img src="images/thumb2.png">
        <p>HTML alone provided basic formatting options for text, and other.</p>
      </li>
    </ul>
  </li>
  
  <!-- Start About -->
  <li> <a href="#about"><i class="icon-question-sign"></i>About</a>
    <ul class="one" id="about">
      <li><img src="images/thumb1.png" alt="image">
        <h3>About Us</h3>
        <p>In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page elements have been phased out by the World Wide Web Consortium (W3C), the organization that defines Web standards, in favor of CSS. the organization that defines.</p>
      </li>
    </ul>
  </li>
  
  <!-- Start Links -->
  <li> <a href="#links"><i class="icon-list"></i>Links</a>
    <ul class="one" id="links">
      <li>
        <div id="link-1" class="link-block light-color">
          <h4>Links 1</h4>
          <ul>
            <li><a href="#"><i class="icon-minus"></i> Css</a></li>
            <li><a href="#"><i class="icon-minus"></i> Html5</a></li>
            <li><a href="#"><i class="icon-minus"></i> java Script</a></li>
            <li><a href="#"><i class="icon-minus"></i> Php</a></li>
            <li><a href="#"><i class="icon-minus"></i> JQuery</a></li>
            <li><a href="#"><i class="icon-minus"></i> Css 3</a></li>
            <li><a href="#"><i class="icon-minus"></i> Asp.Net</a></li>
            <li><a href="#"><i class="icon-minus"></i> Photoshop</a></li>
            <li><a href="#"><i class="icon-minus"></i> Dreamweaver</a></li>
            <li><a href="#"><i class="icon-minus"></i> Fireworks</a></li>
            <li><a href="#"><i class="icon-minus"></i> Expression Web</a></li>
            <li><a href="#"><i class="icon-minus"></i> Corel</a></li>
          </ul>
        </div>
        <div id="link-2" class="link-block light-color">
          <h4>Links 2</h4>
          <ul>
            <li><a href="#"><i class="icon-minus"></i> Photoshop</a></li>
            <li><a href="#"><i class="icon-minus"></i> Dreamweaver</a></li>
            <li><a href="#"><i class="icon-minus"></i> Fireworks</a></li>
            <li><a href="#"><i class="icon-minus"></i> Expression Web</a></li>
            <li><a href="#"><i class="icon-minus"></i> Corel</a></li>
            <li><a href="#"><i class="icon-minus"></i> Visual Studio</a></li>
            <li><a href="#"><i class="icon-minus"></i> Adobe</a></li>
            <li><a href="#"><i class="icon-minus"></i> Css</a></li>
            <li><a href="#"><i class="icon-minus"></i> Html5</a></li>
            <li><a href="#"><i class="icon-minus"></i> java Script</a></li>
            <li><a href="#"><i class="icon-minus"></i> Php</a></li>
          </ul>
        </div>
      </li>
    </ul>
  </li>
  
  <!-- Start columns -->
  <li> <a href="#"><i class="icon-columns" ></i>Columns</a>
    <ul class="one" id="columns">
      <li>
        <h4>column one</h4>
        <p class="block50">Is there a way to apply styles to an element only if it’s embedded within a
          particular element, rather than universally? In other words, can you ask for
          example that italics within headlines be boldface. </p>
        <p class="block50">Is there a way to apply styles to an element only if it’s embedded within a
          particular element, rather than universally? In other words, can you ask for
          example that italics within headlines be boldface. </p>
        <h4>column two</h4>
        <p class="block75">Is there a way to apply styles to an element only if it’s embedded within a
          particular element, rather than universally? In other words, can you ask for
          example that italics within headlines be boldface, but not when they’re within
          paragraphs? </p>
        <p class="block25">Is there a way to apply styles to an element only if it’s embedded within.</p>
      </li>
    </ul>
  </li>
  
  <!-- Start Portfolio -->
  <li>
    <a href="#Portfolio"><i class="icon-briefcase" ></i>Portfolio</a>
    <ul class="one" id="menu">
      <li><a href="#">sample 1</a></li>
      
      <!-- Start sample 2 -->
      <li><a href="#sample2">sample 2<i class="icon-chevron-right"></i></a>
        <ul class="one" id="sub-menu">
          <li><a href="#">Page 1</a></li>
          
          <!-- Start page 2 -->
          <li> <a href="#">Page 2<i class="icon-chevron-right"></i></a>
            <ul class="one test" id="sub-menu">
              <li><a href="#">Page 1</a></li>
              <li><a href="#">Page 2</a></li>
              <li><a href="#">Page 3</a></li>
              <li><a href="#">Page 4</a></li>
            </ul>
          </li>
          <!-- End page 2 -->
          
          <li><a href="#">Page 3</a></li>
        </ul>
      </li>
      <!-- End sample 2 -->
      
      <li ><a href="#">sample 3</a></li>
    </ul>
  </li>
  
  <!-- Start Products -->
  <li> <a href="#"><i class="icon-list-ul"></i>Products</a> </li>
  
  <!-- Start Contact -->
  <li> <a href="#"><i class="icon-cog"></i>Contact</a>
    <ul class="one" id="contact">
      <li>
        <p>Name<em>*</em></p>
        <input name="name" type="text" id="name" class="light-color">
        <p>E-mail<em>*</em></p>
        <input name="email" type="text" id="email" class="light-color">
        <p>Message<em>*</em></p>
        <textarea name="comment" cols="" rows="" id="comment" class="light-color"></textarea>
        <input name="send" type="button" id="send" value="Send">
        <h4 id="h4-social"></h4>
        <a href="#"><i class="icon-facebook"></i></a> <a href="#"><i class="icon-twitter"></i></a> <a href="#"><i class="icon-google-plus"></i></a> <a href="#"><i class="icon-linkedin"></i></a><a href="#"><i class="icon-pinterest"></i></a> 
       </li>
    </ul>
  </li>
</ul>
</body>
</html>








JS代码(dropdown.js):

$(document).ready(function(){
	$('ul.one').hide();
	//Hide And Show Menu$('.nav li').hover(function(){
	var openMenu= $(this).children('ul.one');
	$(openMenu).show();
}
,function(){
	var openMenu= $(this).children('ul.one');
	$(openMenu).hide();
}
);
	//End//Links - Pading left$('#links .link-block li').hover(function(){
	var aTag= $(this).children('a');
	$(aTag).animate({
	paddingLeft:'14px'}
,100);
}
,function(){
	var aTag= $(this).children('a');
	$(aTag).animate({
	paddingLeft:'6px'}
,150);
}
);
	//End}
);
	

CSS代码(reset.css):

/* CSS reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
html,body{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,th,var{font-style:normal;font-weight:normal;}
ol,ul{list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
q:before,q:after{content:'';}
abbr,acronym{border:0;}
section,header{display:block;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
300.44 KB
Html Js 菜单导航特效1
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章