-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path039.书本翻页效果.html
117 lines (97 loc) · 2.77 KB
/
039.书本翻页效果.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #6ebcf8;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
ul {
list-style: none;
width: 243px;
height: 350px;
transform-style: preserve-3d;
perspective: 900px;
transition: 1.5s;
}
li {
position: absolute;
transform-origin: left;
}
li:nth-child(1) {
transform: rotateY(-25deg);
transition: 2s;
}
li:nth-child(2) {
transform: rotateY(-23deg);
transition: 1.7s;
}
li:nth-child(3) {
transform: rotateY(-21deg);
transition: 1.4s;
}
li:nth-child(4) {
transform: rotateY(-19deg);
transition: 1.1s;
}
li:nth-child(5) {
transform: rotateY(-17deg);
transition: 0.8s;
}
li:nth-child(6) {
transform: rotateY(-15deg);
transition: 0.5s;
}
ul:hover li:nth-child(1) {
transform: rotateY(-180deg);
transition: 1.4s;
}
ul:hover li:nth-child(2) {
transform: rotateY(-180deg);
transition: 2.0s;
}
ul:hover li:nth-child(3) {
transform: rotateY(-180deg);
transition: 2.6s;
}
ul:hover li:nth-child(4) {
transform: rotateY(-180deg);
transition: 3.2s;
}
ul:hover li:nth-child(5) {
transform: rotateY(-180deg);
transition: 3.8s;
}
ul:hover {
transform: translateX(150px);
}
img {
width: 243px;
height: 350px;
box-shadow: 1px 4px 5px rgba(0, 0, 0, .2);
}
</style>
</head>
<body>
<!-- 来源 https://www.bilibili.com/video/BV1Ks4y1Z7d1/?spm_id_from=333.999.0.0&vd_source=8c8fc1e66eba50f8efc4fe0f19975ae9 -->
<ul>
<li><img src="./assets/movie-poster/m-byxz.jpg" alt=""></li>
<li><img src="./assets/movie-poster/m-dbs.jpg" alt=""></li>
<li><img src="./assets/movie-poster/m-dlam.jpg" alt=""></li>
<li><img src="./assets/movie-poster/m-dq.jpg" alt=""></li>
<li><img src="./assets/movie-poster/m-gnh.jpg" alt=""></li>
<li><img src="./assets/movie-poster/m-hdlm.jpg" alt=""></li>
</ul>
</body>
</html>