css3粉色菜单效果

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

以下是 css3粉色菜单效果 的示例演示效果:

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

部分效果截图:

css3粉色菜单效果

HTML代码(index.html):

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Lavalike css-only menu effect" />
<!--<link href='http://fonts.googleapis.com/css?family=Unica+One' rel='stylesheet' type='text/css'>-->
<link rel="stylesheet" href="stylesheets/style.css"  media="screen" title="no title" >
<title>css3</title>
</head>
<body>	
	<div class="ph-line-nav nav">
		<a href="#">Home</a>
		<a href="#">About</a>
		<a href="#">Gallery</a>
		<a href="#">Contact</a>
		<div class="effect"></div>
	</div>

	<div class="ph-dot-nav nav">
		<a href="#">Home</a>
		<a href="#">About</a>
		<a href="#">Gallery</a>
		<a href="#">Contact</a>
		<div class="effect"></div>
	</div>
	
	<div class="ph-heart-nav nav">
		<a href="#">Home</a>
		<a href="#">About</a>
		<a href="#">Gallery</a>
		<a href="#">Contact</a>
		<div class="effect"></div>
	</div>
</body>
</html>









CSS代码(style.css):

/* ---- reset ------*/
html,body,div,a{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline;}
html{line-height:1;}
/* --- basic styles ----*/
body{font-family:"Unica One";font-size:1.5em;background:#f2f2f2;text-shadow:0 1px 0 white;}
/* --- for all three examples ----*/
.nav{text-align:center;overflow:hidden;margin:2em auto;width:480px;position:relative;}
.nav a{display:block;position:relative;float:left;padding:1em 0 2em;width:25%;text-decoration:none;color:#393939;-webkit-transition:.7s;-moz-transition:.7s;-o-transition:.7s;-ms-transition:.7s;transition:.7s;}
.nav a:hover{color:#c6342e;}
.effect{position:absolute;left:-12.5%;-webkit-transition:0.7s ease-in-out;-moz-transition:0.7s ease-in-out;-o-transition:0.7s ease-in-out;-ms-transition:0.7s ease-in-out;transition:0.7s ease-in-out;}
.nav a:nth-child(1):hover ~ .effect{left:12.5%;}
.nav a:nth-child(2):hover ~ .effect{left:37.5%;}
.nav a:nth-child(3):hover ~ .effect{left:62.5%;}
.nav a:nth-child(4):hover ~ .effect{left:87.5%;}
/* ----- line example -----*/
.ph-line-nav .effect{width:90px;height:2px;bottom:36px;background:#c6342e;box-shadow:0 1px 0 white;margin-left:-45px;}
/* ----- dot example -----*/
.ph-dot-nav:after{content:"";display:block;position:absolute;width:100%;height:1px;background:#c6342e;bottom:40px;}
.ph-dot-nav a:after{content:"";position:absolute;width:4px;height:4px;bottom:38px;left:50%;margin-left:-2px;background:#c6342e;border-radius:100%;}
.ph-dot-nav .effect{width:10px;height:10px;bottom:36px;margin-left:-5px;background:#c6342e;border-radius:100%;}
/* ----- heart example -----*/
.ph-heart-nav .effect,.ph-heart-nav a:after,.ph-heart-nav a:before{background:url('../images/heart.png') no-repeat;}
.ph-heart-nav .effect{position:absolute;bottom:26px;background-position:0 0;height:8px;width:62px;margin-left:-31px;}
.ph-heart-nav a:before{content:"";display:block;position:absolute;left:50%;bottom:20px;background-position:-62px 0;height:20px;width:11px;margin-left:-11px;}
.ph-heart-nav a:after{content:"";display:block;position:absolute;left:50%;bottom:20px;z-index:1;background-position:-73px 0;height:20px;width:11px;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
2.40 KB
Html CSS3特效
最新结算
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
打赏文章