-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle4.css
71 lines (67 loc) · 1.41 KB
/
style4.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
@import url('https://fonts.googleapis.com/css2?family=Poppins: wght@400;500;600;700;800;900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
background-color: #deeeff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container{
width: 600px;
background-color:white;
padding: 30px;
box-shadow: 0 2px 16px rgba(0,0,0,.1);
border-radius: 20px;
}
.tab_box{
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
border-bottom: 2px solid rgba(229,229,229);
}
.tab_box .tab_btn{
font-size: 18px;
font-weight: 600;
color: #919191;
background: none;
border: none;
padding: 18px;
cursor: pointer;
}
.tab_box .tab_btn.active{
color: #7360ff;
}
.content_box{
padding: 20px;
}
.content_box .content{
display: none;
animation: moving .5s ease;
}
@keyframes moving {
from{transform: translateX(50px);opacity: 0;}
to{transform: translateX(0px);opacity: 1;}
}
.content_box .content.active{
display: block;
}
.content_box .content h2{
margin-bottom: 10px;
}
.line{
position: absolute;
top: 62px;
left: 17px;
width: 90px;
height: 10px;
background-color: #7360ff;
border-radius: 10px;
transition: all .3s ease-in-out;
}