-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
116 lines (116 loc) · 2.13 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
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
body{
background-color: #eaeaea;
overflow: hidden;
}
.container{
position: absolute;
left:50%;
top:50%;
transform: translate(-50%,-50%);
width:100%;
height:88%;
padding:50px;
background-color: #f5f5f5;
box-shadow: 0 30px 50px #dbdbdb;
}
#slide{
width:max-content;
margin-top:50px;
}
.item{
width:200px;
height:300px;
background-position: 50% 50%;
display: inline-block;
transition: 0.5s;
background-size: cover;
position: absolute;
z-index: 1;
top:50%;
transform: translate(0,-50%);
border-radius: 20px;
box-shadow: 0 30px 50px #505050;
}
.item:nth-child(1),
.item:nth-child(2){
left:0;
top:0;
transform: translate(0,0);
border-radius: 0;
width:100%;
height:100%;
box-shadow: none;
}
.item:nth-child(3){
left:50%;
}
.item:nth-child(4){
left:calc(50% + 220px);
}
.item:nth-child(5){
left:calc(50% + 440px);
}
.item:nth-child(n+6){
left:calc(50% + 660px);
opacity: 0;
}
.item .content{
position: absolute;
top:50%;
left:100px;
width:300px;
text-align: left;
padding:0;
color:#eee;
transform: translate(0,-50%);
display: none;
font-family: system-ui;
}
.item:nth-child(2) .content{
display: block;
z-index: 11111;
}
.item .name{
font-size: 40px;
font-weight: bold;
opacity: 0;
animation:showcontent 1s ease-in-out 1 forwards
}
.item .des{
margin:20px 0;
opacity: 0;
animation:showcontent 1s ease-in-out 0.3s 1 forwards
}
.item button{
padding:10px 20px;
border:none;
opacity: 0;
animation:showcontent 1s ease-in-out 0.6s 1 forwards
}
@keyframes showcontent{
from{
opacity: 0;
transform: translate(0,100px);
filter:blur(33px);
}to{
opacity: 1;
transform: translate(0,0);
filter:blur(0);
}
}
.buttons{
position: absolute;
bottom:30px;
z-index: 222222;
text-align: center;
width:100%;
}
.buttons button{
width:50px;
height:50px;
border-radius: 50%;
border:1px solid #555;
transition: 0.5s;
}.buttons button:hover{
background-color: #bac383;
}