-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
63 lines (51 loc) · 1.04 KB
/
index.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
.ripple {
--riple-start-scale: 0;
--riple-end-scale : 1.5;
position : absolute !important;
background: rgba(0, 0, 0, 0.4);
border-radius : 50%;
pointer-events: none;
opacity : 0;
transform : scale(var(--riple-end-scale));
transition: .2s;
}
.ripple-wrap {
position : absolute !important;
left : 0;
top : 0;
width : 100%;
height : 100%;
border-radius : inherit;
overflow : hidden;
pointer-events: none;
z-index : 2;
}
.ripple.show {
animation : ripple-show .5s ease-out both;
--ripple-end-opacity: 0.5;
}
.ripple.removed {
--ripple-end-opacity: 0.5;
animation: ripple-hide .25s both;
}
@keyframes ripple-show {
from {
transform: scale(var(--riple-start-scale));
opacity : 0;
}
25%{
opacity: var(--ripple-end-opacity);
}
to {
transform: scale(var(--riple-end-scale));
opacity : var(--ripple-end-opacity);
}
}
@keyframes ripple-hide {
from {
opacity: var(--ripple-end-opacity);
}
to {
opacity: 0;
}
}