-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutton.scss
52 lines (47 loc) · 962 Bytes
/
button.scss
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
@mixin rings($duration, $delay) {
opacity: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
position: absolute;
top: -2px;
left: -2px;
right: 0;
bottom: 0;
content: "";
height: 100%;
width: 100%;
border: 2px solid rgba(255, 255, 255, 1);
border-radius: 100%;
animation-name: ripple;
animation-duration: $duration;
animation-delay: $delay;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
z-index: -1;
}
.rings-container {
position: absolute;
height: 104px;
width: 104px;
border-radius: 100%;
// box-shadow: 0 0 20px 0 rgba(250,250,210 ,1);
cursor: pointer;
// &::after {
// @include rings(3s, 0s);
// }
// &::before {
// @include rings(3s, 0.5s);
// }
}
@keyframes ripple {
from {
opacity: 1;
transform: scale3d(0.75, 0.75, 1);
}
to {
opacity: 0;
transform: scale3d(3, 3, 1);
}
}