初始化项目
This commit is contained in:
1
public/js/timeline.js
Normal file
1
public/js/timeline.js
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(document).ready(function($){var $timeline_block=$('.cd-timeline-block');$timeline_block.each(function(){if($(this).offset().top>$(window).scrollTop()+$(window).height()*0.75){$(this).find('.cd-timeline-img, .cd-timeline-content').addClass('is-hidden');}});$(window).on('scroll',function(){$timeline_block.each(function(){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');}});});});
|
||||
Reference in New Issue
Block a user