-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS file
62 lines (60 loc) · 1.01 KB
/
CSS file
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
*{
margin: 0;
padding: 0;
}
body {
background-color: #233141;
color: azure;
flex-direction: column;
}
.header{
font-size: 2rem;
display: flex;
justify-content: center;
padding-bottom: 100px;
}
.container{
max-width: 600px;
margin-left: 29rem;
border-bottom: 2px solid white;
padding-bottom:17px ;
cursor: pointer;
}
.question{
display: flex;
justify-content: space-between;
align-items: center;
}
.question h3{
font-size: 1.4rem;
}
.answer{
max-height: 0;
overflow: hidden;
transition: max-height 1.4s ease-out;
}
.answer p{
padding-top: 16px;
line-height: 1.4rem;
font-size: 1.1rem;
}
.container.active .answer {
max-height: 300px;
animation: fade 0.7s ease-in;
}
.container.active span{
transform: rotate(180deg);
}
span{
transition: transform 1.0s ease-in;
}
@keyframes fade {
from{
opacity: 0;
transform: translateY(-15px);
}
to{
opacity: 1;
transform: translateY(0px);
}
}