-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstyle.css
More file actions
50 lines (44 loc) · 904 Bytes
/
style.css
File metadata and controls
50 lines (44 loc) · 904 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
html {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
overflow: hidden;
margin: 0;
}
.container {
display: flex;
width: 90%;
}
.panel {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
border-radius: 50px;
color: white;
flex: 1;
margin: 10px;
cursor: pointer;
position: relative;
transition: all 0.8s ease-in-out;
}
.panel h3 {
position: absolute;
font-size: 25px;
left: 20px;
bottom: 0;
opacity: 0;
}
.panel.active {
flex: 10;
transition: all 0.8s ease-in-out;
}
.panel.active h3 {
opacity: 1;
transition: all 0.8s ease-in-out;
}