Repository navigation
Expand file tree
/
Copy pathAboutme.css
More file actions
148 lines (129 loc) · 2.22 KB
/
Copy pathAboutme.css
File metadata and controls
148 lines (129 loc) · 2.22 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
body {
background-color: #1f242d;
color: white;
font-family: 'Poppins', sans-serif;
font-size: 16px;
line-height: 1.5;
margin: 0;
padding: 0;
}
.header {
position: fixed;
top: 0;
left: 0;
width: 75%;
padding: 20px 10%;
z-index: 100;
animation: slideRight 1s ease forwards;
}
.navbar {
position: fixed;
top: 0px;
right: 25px;
padding: 20px 5%;
display: flex;
justify-content: flex-end;
align-items: center;
z-index: 100;
}
.logo {
font-size: 25px;
color: #fff;
text-decoration: none;
font-weight: 600;
cursor: default;
opacity: 0;
animation: slideRight 1s ease forwards;
}
.navbar a {
display: inline-block;
font-size: 18px;
color: #fff;
text-decoration: none;
font-weight: 500;
margin-left: 35px;
transition: .3s;
opacity: 0;
padding: 6px;
animation: slideTop .5s ease forwards;
animation-delay: calc(.2s * var(--i));
}
.navbar a:hover,
.navbar a.active {
color: #0ef;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
width: 100%;
max-width: 400px;
margin: 0px auto;
margin-bottom: 25px;
box-sizing: border-box;
padding: 20px;
animation: floatImage 4s ease-in-out infinite;;
}
.title {
font-size: 36px;
font-weight: bold;
text-align: center;
margin-bottom: 30px;
animation: slideBottom 1s ease forwards;
}
.subtitle {
font-size: 24px;
font-weight: bold;
text-align: center;
margin-bottom: 20px;
animation: slideRight 1s ease forwards;
}
.text {
text-align: justify;
margin-bottom: 30px;
animation: slideTop 1s ease forwards;
}
/* KEYFRAMES ANIMATION */
@keyframes slideRight {
0% {
transform: translateX(-100px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideTop {
0% {
transform: translateY(100px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes slideBottom {
0% {
transform: translateY(-100px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes floatImage {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-24px);
}
100%{
transform: translateY(0);
}
}