Difference between revisions of "Template:IONIS Paris/JS"
Line 49: | Line 49: | ||
$(window).on('scroll', function() { | $(window).on('scroll', function() { | ||
$timeline_block.each(function() { | $timeline_block.each(function() { | ||
− | if ($(this).offset().top <= $(window).scrollTop() + $(window).height() * 0.75 ) | + | if ($(this).offset().top <= $(window).scrollTop() + $(window).height() * 0.75 $(this).find('.cd-timeline-img').hasClass('is-hidden')) |
{ | { | ||
$(this).find('.cd-timeline-img, .cd-timeline-content').removeClass('is-hidden').addClass('bounce-in'); | $(this).find('.cd-timeline-img, .cd-timeline-content').removeClass('is-hidden').addClass('bounce-in'); |
Revision as of 15:48, 17 August 2015