1/* 2 Version: 1.0 3 Author: Kazuki Saito 4 Website: http://webukatu.com 5 Website: http://crazy-wp.com 6 Docs: 7 Repo: 8 Issues: 9 License: MIT 10 */ 11(function($) { 12 // ãã©ã°ã¤ã³å®ç¾© 13 $.fn.animateHover = function(options){ 14 15 // DOM夿°ã¨ãã¦åå®ç¾© 16 var $this = this; 17 18 // ãªãã·ã§ã³ã¨ããã©ã«ãå¤ãè¨å®ãã 19 var defaults = { 20 scale : 1, //æ¡å¤§ã»ç¸®å° 21 rotateZ : '0deg', //å転Zæ¹åé 22 duration : 300 //ã¢ãã¡ã¼ã·ã§ã³æé 23 }; 24 25 // ãªãã·ã§ã³ã夿°ã¸æ ¼ç´ 26 var setting = $.extend(defaults, options); 27 28 // ã¡ã¤ã³å¦çã®é¢æ° 29 var doAnimate = function($target, scaleSize, rotateDeg, animateTime){ 30 31 // è¤æ°DOM対å¿ã®ããã®ã«ã¼ãå¦ç 32 for(var i = 0; i < $target.length; i++){ 33 // styleæå® 34 $target.eq(i).css({'overflow': 'hidden'}); 35 36 // ãã¦ã¹ãªã¼ãã¼æ 37 $target.eq(i).mouseover(function(){ 38 $(this).children('img').velocity({ 39 scale : scaleSize, 40 rotateZ : rotateDeg 41 },{ 42 duration : animateTime 43 }); 44 }); 45 // ãã¦ã¹ãé¢ããæ 46 $target.eq(i).mouseout(function(){ 47 $(this).children('img').velocity({ 48 scale : 1, 49 rotateZ : '0deg' 50 },{ 51 duration : animateTime 52 }); 53 }); 54 } 55 }; 56 57 // ã¢ãã¡ã¼ã·ã§ã³é¢æ°å®è¡ 58 doAnimate($this, setting.scale, setting.rotateZ, setting.duration); 59 60 //ã¡ã½ãããã§ã¼ã³å¯¾å¿(thisãè¿ã) 61 return(this); 62 }; 63})(jQuery);
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.