-
Notifications
You must be signed in to change notification settings - Fork 44
/
typing.css
53 lines (49 loc) · 999 Bytes
/
typing.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
.messages__item--typing {
will-change: transform;
width: auto;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
border-bottom-right-radius: 20px;
padding: 15px 20px;
display: table;
margin-right: auto;
position: relative;
animation: 2s bulge infinite ease-out;
}
.messages__item--typing::before,
.messages__item--typing::after {
content: '';
position: absolute;
bottom: -2px;
left: -2px;
height: 10px;
width: 10px;
border-radius: 50%;
}
.messages__item--typing::after {
height: 10px;
width: 10px;
left: -10px;
bottom: -10px;
}
span.messages__dot {
height: 8px;
width: 8px;
float: left;
margin: 0 1px;
background-color: #9E9EA1;
display: block;
border-radius: 50%;
opacity: 0.4;
animation: 1s blink infinite;
}
@keyframes blink {
50% {
opacity: 1;
}
}
@keyframes bulge {
50% {
transform: scale(1.05);
}
}