-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (73 loc) · 1.63 KB
/
style.css
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
/* ===( CODE AASHU )=== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
height: 100vh;
background-color: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
}
.img-container {
position: relative;
height: 500px;
width: 700px;
perspective: 500px;
transform-style: preserve-3d;
}
.box {
box-shadow: 0 0 10px rgb(0 0 0 / 30%);
width: 600px;
height: 440px;
border-radius: 25px;
overflow: hidden;
border: 1px solid #bbb;
position: absolute;
top: 50%;
transition: 800ms ease-in-out;
}
.box img {
width: 100%;
height: 100%;
}
.box:first-of-type {
z-index: 5;
opacity: 0;
left: 15%;
transform: translate(-50%, -50%) rotateY(-10deg);
}
.box:nth-of-type(2) {
opacity: 1;
left: 20%;
transform: translate(-50%, -50%) rotateY(-10deg);
z-index: 5;
}
.box:nth-of-type(3) {
left: 25%;
opacity: 0.75;
color: #eee;
z-index: 10;
transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-50px);
}
.box:nth-of-type(4) {
z-index: 5;
opacity: 0.5;
left:30%;
transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-100px);
}
.box:nth-of-type(5) {
z-index: 2;
opacity: 0.25;
left: 35%;
transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-150px);
}
.box:nth-of-type(6) {
z-index: 2;
opacity: 0.0;
left: 40%;
transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}