码迷,mamicode.com
首页 > Web开发 > 详细

CSS3动画闪跳

时间:2017-05-30 15:52:04      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:分享   -o   image   over   bbb   web   absolute   color   height   

效果预览

技术分享

 

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 100%;
			height: 200px;
			background-color: #1BBBC3;
			position: relative;
		}
		.box .line{
			cursor: pointer;
		    position: absolute;
		    left: -100%;
		    top: 0;
		    width: 100%;
		    height: 100%;
		    background-image: -webkit-linear-gradient(0deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.5),hsla(0,0%,100%,0));
		    transform: skewx(-25deg);
		    -o-transform: skewx(-25deg);
		    -moz-transform: skewx(-25deg);
		    -webkit-transform: skewx(-25deg)
		}
		.box:hover .line{
			-webkit-transition: all .5s ease;
		    transition: all .5s ease;
		    left: 100%
		}
	</style>
</head>
<body>
	<div class="box">
		<div class="line"></div>
	</div>
</body>
</html>

  

CSS3动画闪跳

标签:分享   -o   image   over   bbb   web   absolute   color   height   

原文地址:http://www.cnblogs.com/htzan/p/6920305.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!