五感を刺激して、感性を育む親子で体験したい5つのこと | HugMug
.top; var scroll = jQuery(window).scrollTop(); var windowHeight = jQuery(window).height(); if (scroll > targetElement - windowHeight + 50) { jQuery(this).css(’opacity’, ’1’); } }); });});jQuery(function () { jQuery(window).scroll(function () { jQuery(’.ex5,.sc2_1,.sc3_1,.sc5_3,.sc6_1,.sc7_1,.sc3_8 div:nth-child(1),.sc3_8 div:nth-child(1) img’).each(function () { var targetElement = jQuery(this).offset().top; var scroll = jQuery(window).scrollTop(); var windowHeight = jQuery(window).height(); if (scroll > targetElement - windowHeight + 50) { jQuery(this).css(’opacity’, ’1’); jQuery(this).css(’transform’, ’translateX(0)’); } }); });});jQuery(function () { jQuery(window).scroll(function () { jQuery(’.ex8 div,.sc2_2 div,.sc3_2 div,.sc4_8 div,.sc5_4 div,.sc6_3 div,.sc7_2 div,.sc9_3 div’).each(function () { var targetElement = jQuery(this).offset().top; var scroll = jQuery(window).scrollTop(); var windowHeight = jQuery(window).height(); if (scroll > targetElement - windowHeight + 50)