blob: e96af769a7a671b5a26bca895004a7c349402126 (
plain) (
blame)
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
|
.line {
width: 24em;
top: 50%;
margin: auto;
border-right: 2px solid rgba(255, 255, 255, 0.75);
text-align: center;
white-space: nowrap;
overflow: hidden;
transform: translateY(-50%);
}
.anim-typewriter {
animation: typewriter 4s steps(46) 1s 1 normal both,
blinkTextCursor 500ms steps(46) infinite normal;
}
@keyframes typewriter {
from {
width: 0;
} to {
width: 11.5em; /* 11.5em */
}
}
@media(max-width: 768px) {
@keyframes typewriter {
from {
width: 0;
} to {
width: 10.5em; /* 10.5em */
}
}
}
@keyframes blinkTextCursor {
from {
border-right-color: rgba(255, 255, 255, 0.75);
} to {
border-right-color: transparent;
}
}
|