catalog/view/theme/default/javascript/d_blog_module/author.js
(完整代码) 857B$(document).ready(function($){
var $grid_item = $('.bm-grid-item[animate]');
//hide timeline blocks which are outside the viewport
$grid_item.each(function(){
if($(this).offset().top > $(window).scrollTop()+$(window).height()*0.75) {
$(this).find('.bm-grid-item-point, .bm-grid-item-body').addClass('hidden');
}
});
//on scolling, show/animate timeline blocks when enter the viewport
$(window).on('scroll', function(){
$grid_item.each(function(){
var animate = $(this).attr('animate');
if( $(this).offset().top <= $(window).scrollTop()+$(window).height()*0.75 && $(this).find('.bm-grid-item-body').hasClass('hidden') ) {
$(this).find('.bm-grid-item-point, .bm-grid-item-body').removeClass('hidden').addClass(animate);
}
});
});
});
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
