0
已更新:想通了...更新的解决方案,它适用于每个变得可见的元素。waypoint.js animate.css设置延迟或超时
$('.effect-fade-ttb').waypoint(function() {
var $this = $(this);
setTimeout(function() {
$this.addClass('animate-fade-ttb');
}, $this.data('delay'));
}, {
offset: '80%',
triggerOnce: true
});
得到动画的部分有数据延迟attr。
<div data-delay="500" class="effect-fade-rtl animate animate-fade-rtl">
<div class="serviceBoxWrapper">
<div style="background: #000000" class="serviceboxIconHolder">
<span class="fa fa-glass"></span>
</div>
<div class="serviceboxContent">
<h3>Fade RTL</h3>
</div>
</div>
</div>
我想弄清楚如何使用数据延迟值来设置延迟。因为这是基于短代码选项动态添加的。
谢谢,但我已经更新了我与解决的问题。现在我有一个不同的问题,因为我需要为每个... – Bowenac
我已更新的网站是这是你的意思? http://jsfiddle.net/2Fc8w/4/ – Dave
很高兴帮助:) – Dave