Update kute.jquery.js
This commit is contained in:
parent
6d60e6d436
commit
15df42234c
22
dist/kute.jquery.js
vendored
22
dist/kute.jquery.js
vendored
|
@ -1,10 +1,18 @@
|
|||
// KUTE jQuery Plugin for kute.js | by dnp_theme | License - MIT
|
||||
// $('selector').Kute(method, options);
|
||||
|
||||
(function($) {
|
||||
$.fn.Kute = function( method, options ) { // method can be Animate(), fromTo(), to(), stop(), start(), chain(), etc
|
||||
return this.each(function(){
|
||||
new KUTE[method]( this, options );
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
(function($) {
|
||||
$.fn.KUTE = function( method, start, end, ops ) { // method can be Animate(), fromTo(), to(), stop(), start(), chain(), pause()
|
||||
var mt = this[0][method], i, l = this.length;
|
||||
if ( typeof mt === 'function' ) {
|
||||
mt.apply(this[0]);
|
||||
}
|
||||
for (i=0;i<l;i++){
|
||||
if ( method === 'to' ) {
|
||||
return new KUTE[method]( this[i], start, end ); // here start is end and end is ops
|
||||
} else if ( method === 'fromTo' || method === 'Animate' ) {
|
||||
return new KUTE[method]( this[i], start, end, ops );
|
||||
}
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
|
|
Loading…
Reference in a new issue