forked from renjujv/testsigma-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toast.css
73 lines (64 loc) · 1.47 KB
/
toast.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
#toast {
width: 350px;
height: 50px;
visibility: hidden;
/*margin-left: -125px;*/
margin: auto;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 2px;
position: fixed;
z-index: 1;
left: 0;
right:0;
bottom: 40px;
font-size: 17px;
white-space: nowrap;
}
#toast #desc{
color: #fff;
padding: 16px;
overflow: hidden;
white-space: nowrap;
}
/* #toast.show {
visibility: visible;
-webkit-animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 2s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 4s, fadeout 0.5s 4.5s;
} */
#toast.show {
visibility: visible;
-webkit-animation: fadein 0.5s, fadeout 0.5s;
animation: fadein 0.5, fadeout 0.5;
}
/* @-webkit-keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 40px; opacity: 1;}
} */
/* @keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 40px; opacity: 1;}
} */
@keyframes fadein {
0% {opacity: 0;}
25% {opacity: 0.25;}
50% {opacity: 0.5;}
75% {opacity: 0.75;}
100% {opacity: 1;}
}
/* @-webkit-keyframes fadeout {
from {bottom: 40px; opacity: 1;}
to {bottom: 70px; opacity: 0;}
} */
/* @keyframes fadeout {
from {bottom: 40px; opacity: 1;}
to {bottom: 70px; opacity: 0;}
} */
@keyframes fadeout {
0% {opacity: 1;}
25% {opacity: 0.75;}
50% {opacity: 0.5;}
75% {opacity: 0.25;}
100% {opacity: 0;}
}