<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
margin: 0;
padding: 0;
}
body{
text-align: center;
}
ul{
width: 100%;
list-style: none;
height: 300px;
background-color: gray;
-webkit-perspective: 500;
box-sizing: border-box;
padding: 50px;
}
li{
width: 200px;
height: 100px;
background-color: #fff;
margin: 0 auto ;
position: absolute;
display: inline-block;
}
.anim1{
animation: anim 1s infinite;
}
@keyframes anim {
to{
transform: rotateY(-180deg);
}
}
</style>
</head>
<body>
<ul>
<Li></Li>
<Li class="anim1"></Li>
<Li class="anim2"></Li>
</ul>
</body>
</html>
翻书效果
猜你喜欢
转载自blog.csdn.net/Efficiency9/article/details/74857997
今日推荐
周排行