css3遮罩层旋转
~~~
<style>
.parent{
overflow: hidden;
border:1px solid #333;
position: relative;
width:300px;
height:400px;
}
.one{
position:absolute;
width:100%;
height:100%;
}
.one{
z-index: 100;
background:url("images/timg.jpg") no-repeat;
background-size: 100% 100%;
}
.two{
position: absolute;
width: 0;
height: 0;
left:0;
top:0;
z-index: 101;
background:rgba(255,122,133,.5);
transition:all 1s;
transform-origin: 50% 50%;
transform: rotate(360deg);
}
.parent:hover .two{
width:100%;
height:100%;
transform: rotate(0deg);
}
</style>
</head>
<body>
<div class="parent">
<div class="one">
one
</div>
<div class="two">
</div>
</div>
</body>
~~~
![](https://box.kancloud.cn/aa3c2c924c60820d59d176910af6d0d3_327x415.gif)