17
17
background : # fefefe ;
18
18
color : # 2a2a2a ;
19
19
font-family : 'Open Sans' , sans-serif;
20
+ cursor : default;
21
+ }
22
+ * ::selection {
23
+ background : transparent !important ;
20
24
}
21
25
header h1 {
22
26
opacity : 0.7 ;
28
32
box-shadow : none !important ;
29
33
}
30
34
31
- .white .btn {
35
+ .white .btn {
32
36
background : # fff ;
33
37
}
34
- .white .btn-success { color : # 5cb85c ; }
35
- .white .btn-warning { color : # f0ad4e ; }
36
- .white .btn-danger { color : # d9534f ; }
38
+ .white .btn-primary { color : # 428bca ; }
39
+ .white .btn-success { color : # 5cb85c ; }
40
+ .white .btn-warning { color : # f0ad4e ; }
41
+ .white .btn-danger { color : # d9534f ; }
37
42
38
43
39
44
.btn-block { max-width : 500px ; margin : 0 auto; }
51
56
transition : all 0.3s ease;
52
57
text-decoration : none !important ;
53
58
}
59
+ .text-muted {
60
+ color : # 777 !important ;
61
+ }
54
62
</ style >
55
63
</ head >
56
64
< body class ="text-center ">
@@ -68,28 +76,29 @@ <h1>Ripple.js</h1>
68
76
< a href ="# " class ="btn btn-warning btn-lg "> Warnings</ a >
69
77
< a href ="# " class ="btn btn-danger btn-lg "> Danger</ a >
70
78
< hr />
71
- < div class ="white ">
72
- < a href ="# " class ="btn btn-success btn-lg "> Success</ a >
73
- < a href ="# " class ="btn btn-warning btn-lg "> Warnings</ a >
74
- < a href ="# " class ="btn btn-danger btn-lg "> Danger</ a >
75
- </ div >
79
+ < a href ="# " class ="btn btn-success btn-lg white "> Success</ a >
80
+ < a href ="# " class ="btn btn-warning btn-lg white "> Warning</ a >
81
+ < a href ="# " class ="btn btn-danger btn-lg white "> Danger</ a >
76
82
< hr />
77
83
< div class ="area ">
78
84
< h3 > Area</ h3 >
79
85
</ div >
80
86
< hr />
81
87
< a href ="# " class ="btn btn-primary btn-block "> Default</ a >
82
- < a href ="# " class ="btn btn-primary btn-block " data-easing ="ease-in-out "> Easing</ a >
88
+ < a href ="# " class ="btn btn-primary btn-block " data-easing ="ease-in-out " data-duration =" 1.5 " > Easing</ a >
83
89
< a href ="# " class ="btn btn-primary btn-block " data-duration ="3 "> Duration</ a >
84
90
< a href ="# " class ="btn btn-primary btn-block " data-opacity ="1 "> Opacity</ a >
85
- < a href ="# " class ="btn btn-primary btn-block " data-color ="limegreen "> Color</ a >
91
+ < a href ="# " class ="btn btn-primary btn-block white " data-color ="auto "> Auto Color</ a >
92
+ < a href ="# " class ="btn btn-primary btn-block " data-color ="limegreen " data-opacity ="1 "> Color + Opacity</ a >
93
+ < a href ="# " class ="btn btn-primary btn-block no-bind demo "> Bind to Events (mouseleave)</ a >
94
+ < a href ="# " class ="btn btn-primary btn-block " data-multi ="false "> Multi = false</ a >
86
95
</ div >
87
96
</ div >
88
97
</ div >
89
98
90
99
< hr />
91
- < a href ="http://jakiestfu.com/ " target ="_blank " class ="text-muted ">
92
- < small > Carefully Crapted by jakiestfu</ small >
100
+ < a href ="http://jakiestfu.com/ " target ="_blank " class ="btn btn-small btn-primary white text-muted no-bind jakiestfu " data-delay =" 200 ">
101
+ < small > by jakiestfu</ small >
93
102
</ a >
94
103
< hr />
95
104
@@ -103,7 +112,18 @@ <h3>Area</h3>
103
112
104
113
$ ( document ) . on ( 'click' , '[href="#"]' , function ( e ) { e . preventDefault ( ) ; } )
105
114
106
- $ . ripple ( '.btn, .area' , {
115
+ window . rippler = $ . ripple ( '.btn:not(.no-bind), .area' , {
116
+ debug : true ,
117
+ multi : true
118
+ } ) ;
119
+
120
+ $ . ripple ( '.no-bind.demo' , {
121
+ on : 'mouseleave' ,
122
+ multi : true
123
+ } ) ;
124
+
125
+ $ . ripple ( '.no-bind.jakiestfu' , {
126
+ on : 'mouseenter' ,
107
127
multi : true
108
128
} ) ;
109
129
} ) ;
0 commit comments