1/*--------------------------------------------------------------------------* 2 * 3 * set transition animate 4 * 5 * MIT-style license. 6 * 7 * 2010 Kazuma Nishihata 8 * http://blog.webcreativepark.net/2010/09/17-183446.html 9 * 10 *--------------------------------------------------------------------------*/ 11jQuery.fn.animate3 = function(prop,speed,easing,callback){ 12 var self = this; 13 if (jQuery.isEmptyObject(prop)) { 14 return self; 15 } 16 if(speed && !isNaN(speed)){ 17 speed = speed+"ms"; 18 } 19 var def = $.Deferred(); 20 21 callback = callback? callback:function(){}; 22 23 self 24 .css("-webkit-transition","all "+speed+" "+easing) 25 .unbind("webkitTransitionEnd") 26 .one("webkitTransitionEnd",function(){ 27 self.css("-webkit-transition",""); 28 setTimeout(function(){ 29 def.resolveWith(self); 30 },1); 31 callback.apply(self); 32 }).css(prop); 33 34 return def.promise(self); 35}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.