1// ã¢ãã¡ã¼ã·ã§ã³å¯¾å¿ 2jQuery('.animate__animated').each(function ($el) { 3 var class_names = jQuery(this).attr("class").split(" "); 4 var $current_item = this; 5 if (class_names) { 6 var pattern = "animate__"; 7 jQuery.each(class_names, function (index, class_name) { 8 if (class_name.indexOf(pattern) > -1) { 9 jQuery($current_item).removeClass(class_name); 10 var animation_settings = jQuery($current_item).attr("animation-settings"); 11 if (animation_settings === undefined) { 12 animation_settings = ""; 13 } 14 animation_settings += " " + class_name; 15 // console.log(animation_settings); 16 17 jQuery($current_item).attr("animation-settings", animation_settings); 18 } 19 }); 20 // åæè¡¨ç¤ºæã®èããé²ããã .animate__animatedåä½ã§ã¯hiddenã¨ãªã£ã¦ããã 21 // is-standbyãã¤ãããã¨ã§è¡¨ç¤ºãããã 22 jQuery(this).addClass("is-standby"); 23 } 24 jQuery(this).on('inview', function (event, isInView, visiblePartX, visiblePartY) { 25 var animation_settings = jQuery(this).attr("animation-settings"); 26 // console.log(animation_settings); 27 if (isInView) { 28 //ãã©ã¦ã¶ã®è¡¨ç¤ºåã«è¡¨ç¤ºãããã¨ãã«å®è¡ããå¦ç 29 jQuery(this).addClass(animation_settings); 30 } else { 31 //è¦ç´ ãè¦ããªããªã£ãã¨ãã«å®è¡ããå¦ç 32 // $(this).removeClass(animation_settings); 33 } 34 }); 35}); 36 37 38// ã¡ã¤ã³ã¹ã©ã¤ãã¼ã®ï¼æç®ã®ãã©ã³ã¸ã·ã§ã³ã¸ã®å¯¾å¿ 39jQuery(function ($) { 40 var target = $('.main-image-inner.slider.zoomin .slick-slide[data-slick-index="0"]'); 41 if (target.length > 0) { 42 target.addClass("slide-animation"); 43 $('.main-image-inner.slider.zoomin').on({ 44 beforeChange: function (event, slick, currentSlide, nextSlide) { 45 $(".slick-slide", this).eq(currentSlide).addClass("preve-slide"); 46 $(".slick-slide", this).eq(nextSlide).addClass("slide-animation"); 47 }, 48 afterChange: function () { 49 $(".preve-slide", this).removeClass("preve-slide slide-animation"); 50 } 51 }); 52 } 53});
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.