效果图:

css3实现翻书页效果_html

源代码:

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div {
float: left;
overflow: hidden;
height: 200px;
width: 150px;
margin-right: 30px;
border: 1px solid #ccc;
cursor: pointer;
}

div::before {
content: " ";
display: block;
width: 100%;
height: 100%;
background-color: #00a4ff;
transform-origin: left bottom;
transform: rotate(180deg);
transition: all ease .5s;
}

div:hover::before {
transform: rotate(0deg);
}
</style>
</head>

<body>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>

</body>

</html>