-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
55 lines (48 loc) · 1.06 KB
/
styles.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
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');
* {
box-sizing: border-box;
}
body {
font-family: 'Muli', sans-serif;
overflow: hidden;
margin: 0;
background: rgb(252, 252, 252);
background: linear-gradient(90deg, rgba(252, 252, 252, 1) 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 2, 127, 1) 100%);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
width: 100%;
display: flex;
padding: 0 20px;
}
.slide {
height: 80vh;
border-radius: 20px;
margin: 10px;
cursor: pointer;
color: #fff;
flex: 1;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
transition: all 500ms ease-in-out;
}
.slide h3 {
position: absolute;
font-size: 24px;
bottom: 20px;
left: 20px;
margin: 0;
opacity: 0;
}
.slide.active {
flex: 10;
}
.slide.active h3 {
opacity: 1;
transition: opacity 0.3s ease-in 0.4s;
}