-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjquery.ripple.scss
89 lines (78 loc) · 1.74 KB
/
jquery.ripple.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// FOR COMPILING INTO YOUR SASS PROJECTS
// Thank you Sass for not providing a way to do this with plain css.
// No really.
[data-ripple] {
overflow: hidden;
position: relative;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ripple-effect {
display: block;
position: absolute;
-webkit-animation: ripple 2s;
-moz-animation: ripple 2s;
-ms-animation: ripple 2s;
-o-animation: ripple 2s;
animation: ripple 2s;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-transition: background-color .25s ease .1s;
-moz-transition: background-color .25s ease .1s;
-ms-transition: background-color .25s ease .1s;
-o-transition: background-color .25s ease .1s;
transition: background-color .25s ease .1s;
}
@-webkit-keyframes ripple {
from {
-webkit-transform: scale(1);
opacity: 0.4;
}
to {
-webkit-transform: scale(100);
opacity: 0.25;
}
}
@-moz-keyframes ripple {
from {
-moz-transform: scale(1);
opacity: 0.4;
}
to {
-moz-transform: scale(100);
opacity: 0.25;
}
}
@-ms-keyframes ripple {
from {
-ms-transform: scale(1);
opacity: 0.4;
}
to {
-ms-transform: scale(100);
opacity: 0.25;
}
}
@-o-keyframes ripple {
from {
-o-transform: scale(1);
opacity: 0.4;
}
to {
-o-transform: scale(100);
opacity: 0.25;
}
}
@keyframes ripple {
from {
transform: scale(1);
opacity: 0.4;
}
to {
transform: scale(100);
opacity: 0.25;
}
}