-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
53 lines (53 loc) · 966 Bytes
/
Copy pathstyle.css
File metadata and controls
53 lines (53 loc) · 966 Bytes
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
*{
box-sizing: border-box;
}
body{
font-family: Arial, Helvetica, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
margin: 0;
background-color:rgb(70, 50, 50);
}
.container{
display: flex;
width: 70%;
}
.panel{
background-size:cover;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
border-radius: 40px;
color: white;
cursor: pointer;
flex: 1.8;
margin: 10px;
position: relative;
/* transition: flex 4s ease-in; */
}
.panel h3 {
font-size: 24px;
position: absolute;
left: 20px;
bottom: 20px;
margin: 0;
opacity: 0;
transition: opacity 0.3s ease-in 0.4s;
}
.panel.active h3{
opacity: 1;
}
.panel.active{
flex: 50;
}
@media(max-width: 480px){
.container{
width: 100vh;
}
.panel:nth-of-type(4), .panel:nth-of-type(5) {
display: none;
}
}