代码

 <!DOCTYPE html>
<!-- saved from url=(0223)file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html -->
<html lang="en"><!-- 申明当前页面--><!-- 头部--><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--声明当前页面的编码格式 UTF-8(国际编码)gbk(中文简体)-->
<meta charset="UTF-8">
<!--声明当前页面的三要素-->
<title>css3动画导航效果</title>
<title></title>
<meta name="Keywords" content="关键字">
<meta name="Description" content="描述">
<!--样式 css 变漂亮 -->
<style type="text/css">
.menu { width: 900px;/*宽度*/ margin: 120px auto 0px auto; /*自适应浏览器居中*/ position: relative; }
.menu .current { position: absolute;/*定位*/ bottom: 0px; background: #dddddd; height: 2px; width: 100%; }
.nav { height: 50px;/*高度*/ /*background:#00cc99;背景颜色*/ }
.nav a { position: relative; z-index: 9999;/*当前所在位置*/ color: #666666;/*文字颜色*/ text-decoration: none; /*去除下划线*/ display: block;/*行元素转为块元素*/ float: left;/*浮动*/ height: 50px; line-height: 50px;/*文字垂直*/ padding: 0px 40px;/*内边距改变自身宽度*/ font-family: "微软雅黑"; font-size: 16px;/*文字字体 大小*/ overflow: hidden;/*超出去范围隐藏*/ }
.nav a .bor { background: #80b600; height: 2px; width: 100%; position: absolute; left: 0px; bottom: 0px; transform: translateX(-100%); -ms-transform:translateX(-100%); -o-transform:translateX(-100%); -moz-transform:translateX(-100%); -webkit-transform:translateX(-100%); /*css3改变当前位置*/ }
.nav a:hover { color: #80b600; }
.nav a:hover .bor { transform: translateX(0%); -ms-transform:translateX(0%); -o-transform:translateX(0%); -moz-transform:translateX(0%); -webkit-transform:translateX(0%); transition: all 800ms ease; -moz-transition: all 800ms ease; -o-transition: all 800ms ease; -webkit-transition: all 800ms ease;/*动画过程*/ }
.nav a.abcd { color: #80b600; }
.nav a.abcd .bor { transform: translateX(0%); -ms-transform:translateX(0%); -o-transform:translateX(0%); -moz-transform:translateX(0%); -webkit-transform:translateX(0%); } </style>
</head>
<!-- 身体-->
<body>
<!--div 盒子模型 容器 可以为他设置高度 宽度 放内容 -->
<div class="menu">
<div class="nav"> <a href="http://www.baidu.com/">首页
<div class="bor"></div>
</a> <a href="file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html#">了解我们
<div class="bor"></div>
</a> <a href="file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html#">产品展示
<div class="bor"></div>
</a> <a href="file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html#">服务报价
<div class="bor"></div>
</a> <a href="file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html#">最新消息
<div class="bor"></div>
</a> <a href="file:///C:/Users/user/AppData/Local/Temp/HZ$D.187.4185/HZ$D.187.4186/%E7%BE%A4%E5%8F%8B%E5%88%86%E4%BA%AB%E6%95%88%E6%9E%9C%E9%9B%86%E5%90%88/%E4%B8%80%E5%8F%B7%E5%88%86%E4%BA%ABcss3%E6%BB%91%E5%8A%A8%E5%AF%BC%E8%88%AA.html#">联系方式
<div class="bor"></div>
</a> </div>
<div class="current"></div>
</div> </body></html>

效果展示

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABB8AAADDCAIAAABF6S64AAAM7UlEQVR4nO3dMVLjPB8HYA61Z8pwhlTcIO/M3oDcgIJxQ7VDSZUCKL5yz+GvwIklW3Js+O/Lu/bzDMWS2ElWimz9LMnctAAAABFuvvsDAAAAKyFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDug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U2nx7d9nPop/v/r4AwNZ9b09YugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQAzpAgAAiCFdAAAAMaQLAAAghnQBAADEkC4AAIAY0gUAABBDugAAAGJIFwAAQIz/A39jUeJ+dbIOAAAAAElFTkSuQmCC" alt="" />

css3动画导航实现的更多相关文章

  1. 纯CSS3实现3D动画导航,html5 webRTC技术实现免费网页电话拨打

    花了一周的时间完成了 说吧 (免费网页电话) 的前端开发工作,先将技术点总结如下: 免费电话采用最新的html5 webRTC 技术 实现互联网和电信MIS网互通实现网页电话,目前只有 google ...

  2. 一款简洁的纯css3代码实现的动画导航

    之前为大家介绍了好多导航菜单,今天给大家分享一款简洁的纯css3代码实现的动画导航.鼠标经过的时候以背景色以菱形渐变为长方形.效果图如下: 在线预览   源码下载 实现的代码. html代码: < ...

  3. 超酷震撼 HTML5/CSS3动画应用及源码

    HTML5可以制作非常华丽的动画效果,这点通过之前的分享学习我们已经有深刻的了解了,今天我们主要来分享一些HTML5结合CSS3形成的超炫震撼的动画应用以及它们的源代码,真的非常不错. 1.纯CSS3 ...

  4. CSS3 动画基础

    该文为译文转载,原文地址:http://tech.163.com/mobile/10/0106/09/5SB96QSM00112K88.html   译文:你需要知道的CSS3 动画技术 原文:Wha ...

  5. 分享7款顶级的CSS3动画特效

    1.CSS3 SVG文字背景动画 超酷的文字特效 今天我们来分享一款基于CSS3和SVG的文字特效,文字的背景可以定义一些动画特效,在背景动画播放的同时,我们还可以选中文字.本示例让文字背景展示水波和 ...

  6. 纯css实现Magicline Navigation(下划线动画导航菜单)

    看别人网站的时候,看到一种导航菜单的动画,觉得很有意思,就仔细研究起来. 目前见过的动画有三种:水平下划线动画导航.水平背景动画导航.垂直动画导航,他们实现思路都是一样的,都是依赖 css3的同级通用 ...

  7. css3动画的性能优化_针对移动端卡顿问题

    这篇文章主要讲的是怎样制作流畅动画,特别是针对移动端.在这里我首先介绍制作动画的几种方法的优缺点:接着会着重介绍用css3制作动画的注意事项. 资源网站大全 https://55wd.com 设计导航 ...

  8. jQuery+css3侧边栏导航菜单

    效果体验:http://hovertree.com/texiao/jquery/37/ 代码如下: <!doctype html> <html lang="zh" ...

  9. css3动画第一式--简单翻滚

    在w3cschool上面查阅css3的动画语法手册时,发现“css3 动画”栏目首页放了一个翻滚的div动画案例,觉得挺好看的,于是就自己模仿着写了一下,感觉还行O(∩_∩)O哈哈~ 查看原地址 下面 ...

随机推荐

  1. 项目管理:CocoaPods建立私有仓库

    CocoaPods是iOS,Mac下优秀的第三方包管理工具,类似于java的maven,给我们项目管理带来了极大的方便. 个人或公司在开发过程中,会积累很多可以复用的代码包,有些我们不想开源,又想像开 ...

  2. Shell 字符串比较

    转自网络 Shell字符串比较 收藏 Shell 中整数比较方法及字符串的比较方法,如等于,不等于,大于,大于等于,小于,等等. 二元比较操作符,比较变量或者比较数字.注意数字与字符串的区别. --- ...

  3. mysql高可用之PXC(Percona XtraDB Cluster)

    简介 Percona XtraDB Cluster是MySQL高可用性和可扩展性的解决方案,Percona XtraDB Cluster提供的特性如下: 1).同步复制,事务要么在所有节点提交或不提交 ...

  4. java 模拟消息的发送功能

    import java.util.HashMap; import java.util.Iterator; import java.util.Map; /* * 完成消息的发送功能 * 在发送消息之前, ...

  5. hdu4727 The Number Off of FFF

    理解错题意,wa了几次. 我一开始的理解忽略了实际背景,认为错报是绝对的,不依赖于其左边的人. 而实际上某士兵报数的对错取决且仅取决于他所报的数与其左邻所报的数. 所以假设第一个人没有报错,则其后必有 ...

  6. 提高 Linux 上 socket 性能

      http://www.cnblogs.com/luxf/archive/2010/06/13/1757662.html 基于Linux的Socket网络编程的性能优化   1 引言    随着In ...

  7. 将本地项目上传到Github

    将本地项目上传到Github 转载请注明出自天外归云的博客. 前提 已经下载了Git到本地. 创建Repository 首先登陆我的Github页面,在Repositories中New一个并起Repo ...

  8. hdu 3826

    Squarefree number Time Limit: 10000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Other ...

  9. eclipse编辑jsp快捷键保存时特别卡的解决方法

    今天eclipse用着用着的时候,每次编辑jsp页面快捷键保存的时候要等半天才保存好,特别的卡.搞的很蛋疼.上网搜了下有解决办法 Window -> Preference -> Gener ...

  10. mongodb(4查询)

    第一个参数决定要返回那些文档 db.test.find()返回所有文档 db.test.find({"age":27}) db.test.find({"username& ...