两款纯css3实现的动画菜单特效代码

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

以下是 两款纯css3实现的动画菜单特效代码 的示例演示效果:

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

部分效果截图:

两款纯css3实现的动画菜单特效代码

HTML代码(index.html):

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>各种动画菜单</title>
<link href="style/move.css" type="text/css" rel="stylesheet" />
</head>

<body>
<p class="link"><a href="index.html" class="active">demo01</a><a href="demo2.html">demo02</a></p>
<ul class="list">
	<li>
    	<span class="icon">Z</span>
        <div class="text">
        	<h2>关于我们</h2>
            <h3>Our web site is it</h3>
        </div>
    </li>
    <li>
    	<span class="icon">N</span>
        <div class="text">
        	<h2>联系我们</h2>
            <h3>Our web site is it</h3>
        </div>
    </li>
    <li>
    	<span class="icon">S</span>
        <div class="text">
        	<h2>javascript课程</h2>
            <h3>Our web site is it</h3>
        </div>
    </li>
    <li>
    	<span class="icon">F</span>
        <div class="text">
        	<h2>html5课程</h2>
            <h3>Our web site is it</h3>
        </div>
    </li>
    <li>
    	<span class="icon">B</span>
        <div class="text">
        	<h2>CSS免费计划</h2>
            <h3>Our web site is it</h3>
        </div>
    </li>
</ul>
</body>
</html>







CSS代码(move.css):

@charset "utf-8";/*清零*/
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;border:0;}
body{font-size:12px;/*font-family:"Microsoft YaHei";*/
font-family:Verdana;}
ul,ol{list-style-type:none;}
select,input,img{vertical-align:middle;}
a{text-decoration:none;}
body{background:url(img/beige_paper.png) left top repeat;}
@font-face{font-family:'WebSymbolsRegular';src:url('img/websymbols.woff');src:url('img/websymbols.woff') format('woff'),url('img/websymbols.ttf') format('truetype');font-weight:normal;font-style:normal;}
.link{text-align:center;padding-top:10px;}
.link a{font-size:12px;color:#F30;border:#BFBFFF solid 1px;display:inline-block;height:20px;line-height:20px;padding:0 4px;margin:0 5px;background:#FFF;border-radius:3px;}
.link a.active{background:#259add;color:#FFF;}
.list{width:100%;height:auto;margin-top:50px;}
.list li{width:500px;margin:0 auto;height:100px;margin-bottom:10px;background:#FFF;box-shadow:1px 1px 2px rgba(0,0,0,0.2);-webkit-transition:0.3s all ease;-moz-transition:0.3s all ease;-ms-transition:0.3s all ease;-o-transition:0.3s all ease;transition:0.3s all ease;overflow:hidden;}
.list li:hover{background:#E1F0FA;box-shadow:1px 1px 3px rgba(0,0,0,0.4);}
.list li:hover .text h2{color:#259add;-webkit-animation:moveTop 300ms ease-in-out;-moz-animation:moveTop 300ms ease-in-out;-ms-animation:moveTop 300ms ease-in-out;-o-animation:moveTop 300ms ease-in-out;}
.list li:hover .text h3{color:#000;-webkit-animation:moveBottom 300ms ease-in-out;-moz-animation:moveBottom 300ms ease-in-out;-ms-animation:moveBottom 300ms ease-in-out;-o-animation:moveBottom 300ms ease-in-out;}
.list li:hover .icon{color:#259add;font-size:50px;}
.list li .icon{width:90px;height:90px;margin-left:20px;margin-top:5px;margin-right:20px;float:left;font-size:30px;font-family:'WebSymbolsRegular';line-height:90px;text-align:center;-webkit-transition:0.3s all ease;-moz-transition:0.3s all ease;-ms-transition:0.3s all ease;-o-transition:0.3s all ease;text-shadow:0 0 3px #CCCCCC;}
.text{width:350px;height:auto;float:left;margin-top:16px;height:70px;}
.text h2{font-family:"Microsoft YaHei";color:#999;font-size:30px;font-weight:normal;}
.text h3{font-family:Verdana;font-size:14px;color:#666;font-weight:normal;}
@-webkit-keyframes moveTop{from{opacity:0;-webkit-transform:translateY(-200%);}
to{opacity:1;-webkit-transform:translateY(0%);}
}
@-moz-keyframes moveTop{from{opacity:0;-moz-transform:translateY(-200%);}
to{opacity:1;-moz-transform:translateY(0%);}
}
@-ms-keyframes moveTop{from{opacity:0;-ms-transform:translateY(-200%);}
to{opacity:1;-ms-transform:translateY(0%);}
}
@-o-keyframes moveTop{from{opacity:0;-o-transform:translateY(-200%);}
to{opacity:1;-o-transform:translateY(0%);}
}
@-webkit-keyframes moveBottom{from{opacity:0;-webkit-transform:translateY(200%);}
to{opacity:1;-webkit-transform:translateY(0%);}
}
@-moz-keyframes moveBottom{from{opacity:0;-moz-transform:translateY(200%);}
to{opacity:1;-moz-transform:translateY(0%);}
}
@-ms-keyframes moveBottom{from{opacity:0;-ms-transform:translateY(200%);}
to{opacity:1;-ms-transform:translateY(0%);}
}
@-o-keyframes moveBottom{from{opacity:0;-o-transform:translateY(200%);}
to{opacity:1;-o-transform:translateY(0%);}
}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
80.88 KB
Html Js 菜单导航特效5
最新结算
HTML5 3D效果网页视频背景代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
软件概要设计说明书Word下载
类型: .docx 金额: CNY 0.38¥ 状态: 待结算 详细>
软件概要设计说明书Word下载
类型: .docx 金额: CNY 3.02¥ 状态: 待结算 详细>
.net c#获取声卡信息,声卡数量
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取声卡信息,声卡数量
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑显示适配器信息
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
各执行环节公正透明,帮助企业完成从赛制策划、活动推广、评委评选到版权转让等系列工作,专业、高效、值得信赖。平均每场赛事可征集到数百至数千组源码作品
合作伙伴
联系我们
  • 邮箱:raozetian@hotmail.com
Copyright 2023-2024 eeigg.com·皖ICP备2024038726号-1
打赏文章