-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
72 lines (68 loc) · 1.79 KB
/
test.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
<!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">
<title>test</title>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
position: relative;
width: 360px;
height: 640px;
margin-top: 150px;
background: rgba(0, 0, 0, 0);
transform: rotate(-25deg) skew(25deg) scale(0.5);
transition: 0.5s;
}
.container img {
position: absolute;
width: 100%;
transition: 0.5s;
}
.container:hover img:nth-child(4) {
transform: translate(160px, -160px);
opacity: 1;
}
.container:hover img:nth-child(3) {
transform: translate(120px, -120px);
opacity: 0.8;
}
.container:hover img:nth-child(2) {
transform: translate(80px, -80px);
opacity: 0.6;
}
.container:hover img:nth-child(1) {
transform: translate(40px, -40px);
opacity: 0.4;
}
@keyframes rotateX {
100% {
transform: rotateX(150deg);
}
}
@keyframes rotateY {
100% {
transform: rotateY(150deg);
}
}
</style>
</head>
<body>
<div class="container">
<img src="/src/0000001.jpg">
<img src="/src/0000001.jpg">
<img src="/src/0000001.jpg">
<img src="/src/0000001.jpg">
</div>
</body>
</html>