-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabout_timeline.css
104 lines (91 loc) · 1.64 KB
/
about_timeline.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
body{
font-family: sans-serif;
margin: 0;
padding: 0;
line-height: 1.5em;
font-weight: 400;
color: white;
background-color: #4c4177;
background-image: linear-gradient(315deg, #4c4177 0%, #2a5470 74%);
}
.content > h2{
text-align: center;
}
.container{
padding: 2rem;
padding-bottom: 400px;
margin: 0 auto;
max-width: 800px;
}
.top-section{
text-align: center;
padding: 4rem 0;
max-width: 600px;
margin: 0 auto;
}
.timeline{
position: relative;
min-height: 150px;
}
.line{
position: absolute;
z-index: 2;
left: calc(50% - 1px);
width: 2px;
top: -50px;
bottom: -50px;
background-color: #000;
display: none;
}
.line:before,.line:after{
position: absolute;
display: block;
content: "";
height: 1rem;
width: 1rem;
border-radius: 50%;
background-color: #000;
left: 50%;
transform: translateX(-50%);
}
.line:after{
bottom: 0;
}
.section{
display: flex;
opacity: 0;
transform: translateX(-100%);
transition: 600ms ease-in-out;
position: relative;
z-index: 1;
margin: 50px 0;
padding: 1rem;
border-radius: 1rem;
align-items: center;
min-height: 300px;
}
.section:nth-child(odd){
flex-direction: row-reverse;
transform: translateX(100%);
}
.bead{
position: absolute;
display: block;
height: 1rem;
border-radius: 50%;
background-color: #000;
left: 50%;
top: 20%;
transform: translateX(-50%);
}
.content{
width: calc(50% - 2rem);
}
.show-me:nth-child(n){
transform: none;
opacity: 1;
}
h1{
font-weight: 400;
letter-spacing: 1px;
}