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').hasClass('is-hidden'))
 
       {
 
       {

Revision as of 16:00, 17 August 2015