首页 > Web开发 > 详细

CSS3动画闪跳

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

效果预览

技术分享

 

<!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动画闪跳

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!