0
我将选项触发器设置为true,如果我从开始(页面顶部)开始滚动并开始向下滚动,它就像魅力一样工作。路点在刷新后不会触发以上目标元素
但是,如果我刷新页面底部的页面并开始向上滚动,它不会像从页面顶部向下滚动时那样触发上述目标元素。
这里我的代码:
$('.anim').each(function(index, elHtml) {
var el = $(this);
// console.log($(this), el);
var _animation = el.data('animation'),
_duration = el.data('duration') ? el.data('duration') : 1000,
_offset = el.data('offset') ? el.data('offset') : 'bottom-in-view';
el.waypoint(function(direction){
el.velocity(_animation, _duration);
if(direction == 'up'){
el.velocity(_animation, _duration);
}
}, {
offset: _offset,
triggerOnce: true
});
});
请让我知道如果你有解决方案。 谢谢你的时间:)
非常感谢你,并感谢你的伟大的插件! – 2014-11-07 19:58:28