-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
style.css
88 lines (78 loc) · 1.23 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
/*
h1{
color: lightseagreen;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.cards{
display: flex;
justify-content: center;
}
.margin-bet{
margin: 20px;
}
img{
border-radius: 10%;
width: 100px;
border: 4px solid black;
}
img:hover{
border-radius: 10%;
width: 350px;
transition: 1s;
} */
*{
box-sizing: border-box;
}
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
margin: 0px;
}
.container{
display: flex;
width: 90vw;
}
.panel{
background-size: auto 100%;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
border-radius: 50px;
color: white;
cursor: pointer;
flex: 0.1;
margin: 10px;
position: relative;
transition: flex 1s ease-in;
}
.panel h3{
font-size: 24px;
position: absolute;
bottom: 20px;
left: 40px;
margin: 0;
opacity: 0;
}
.panel.active{
background-size: cover;
flex: 0.9;
}
.panel.active h3{
opacity: 1;
transition: opactiy 0.3s ease-in 0.4s;
}
@media (max-width: 480px) {
.container{
width: 100vw;
}
.panel:nth-of-type(4),
.panel:nth-of-type(5){
display: none;
}
}