js+css特效菜单栏

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- 
	This technique is originally authored by Elliott Rothman, elliottrothman.com
	Feel free to use, improve, build upon it in any way you can, there is no copyright or anything.
	Similiar terms to the CC Share alike agreement.
	Enjoy this experiment with the webkit proposed CSS3 properties!
-->
<html>
	<head>
		<title>CSS3 Smoothie Slider Menu | Elliott Rothman</title>
		<style type="text/css" media="screen">
			
			/* clear styles */
			* { margin:0; padding:0 }
			:link,:visited { text-decoration:none }
			a img,:link img,:visited img { border:none }
			ul,ol,dl { list-style:none }
			h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; }
			
			/* basic fonts, colors */
			
			body
			{
				font-family: Helvetica, Arial, Geneva;
				font-size: 11px;
			}
			
			h1
			{
				font-size: 13px;
			}
			
			#wrapper
			{
				
			}
			
			ul.smoothie
			{
				margin-bottom: 20px;
			}
			
			ul.smoothie li
			{
				-webkit-transition-property: margin-left;
				-webkit-transition-duration: 500ms;
				width: 200px;
				border-top:2px solid #efefef;
				display: block;
				margin-left:0;
			}
			
			ul.smoothie li:hover
			{
				margin-left: 10px;
			}
			
			ul.smoothie li a
			{
				-webkit-transition-property: color, background-color, padding-left, -webkit-box-shadow;
				-webkit-transition-duration: 500ms, 500ms, 500ms, 500ms;
				background-color: #fff;
				color: #afafaf;
				padding-left: 0;
				padding-top: 10px;
				padding-bottom: 10px;
				-webkit-box-shadow: 0 0 0 rgba(0,0,0,0)
			
			}
			
			ul.smoothie li a:link
			{
				
			}
			
			ul.smoothie li a:link, ul.smoothie li a
			{
				display:block;
				
				 
			}
			
			ul.smoothie li a:hover
			{
				
				background-color: #efefef;
				color: #333;
				padding-left: 15px;
				-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
				z-smoothie: 2;
				
			}

		</style>
	</head>
	<body>
	<div id="wrapper"></div>
		<h1>CSS3 Smoothie Slider Menu</h1><br/>
		<ul class="smoothie">
			<li><a href="#">Lorem</a></li>
			<li><a href="#">Ipsum</a></li>
			<li><a href="#">Dolor</a></li>
		</ul>
		<br/>
	</div>
	</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值