-
Notifications
You must be signed in to change notification settings - Fork 0
/
typewriter.css
64 lines (57 loc) · 990 Bytes
/
typewriter.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
body,
html {
margin: 0;
}
:root {
--bg-color: #353839;
--text-color: crimson;
}
.container {
min-width: 400px;
height: 100vh;
align-items: center;
box-sizing: border-box;
background: var(--bg-color);
padding: 50px;
}
.typewriter {
font-family: Arial, Helvetica, sans-serif;
font-size: 56px;
color: #fff;
font-weight: bold;
position: relative;
margin: 0;
top: 50%;
transform: translateY(-50%);
}
.typewriter span {
color: var(--text-color);
/* text-transform: uppercase; */
padding: 10px;
border-right: solid var(--text-color) 10px;
animation: cursor 1s ease-in-out infinite;
}
.foot-text {
text-align: center;
margin: 30px;
color: #353839;
/* background-color: #353839; */
}
@keyframes cursor {
from {
border-color: var(--text-color);
}
to {
border-color: transparent;
}
}
@media (max-width: 576px) {
.typewriter {
font-size: 24px;
}
}
@media (max-width: 768px) {
.typewriter {
font-size: 36px;
}
}