我正在使用这个模板:带有插件jQuery滚动显示的https://startbootstrap.com/template-overviews/creative/
如果你看一下这个页面:https://blackrockdigital.github.io/startbootstrap-creative/#services
动画(Dimond、纸飞机、报纸和心脏)一个接一个地加载。图标numer 2开始动画,当numer 1完成等。
当我尝试做同样的事情时,所有的动画都是同时加载的。
JavaScript (刚刚将.sr-step添加到模板)
// Initialize and Configure Scroll Reveal Animation
window.sr = ScrollReveal();
sr.reveal('.sr-icons', {
duration: 600,
scale: 0.3,
distance: '0px'
}, 200);
sr.reveal('.sr-button', {
duration: 1000,
delay: 200
});
sr.reveal('.sr-step', {
duration: 600,
delay: 200
});
sr.reveal('.sr-contact', {
duration: 600,
scale: 0.3,
distance: '0px'
}, 300);这是我的html
<div class="row">
<div class="col-lg-3 col-md-6 sr-step">
<h3 class="step-number">01</h3>
<div class="step-text"><p>Text text text text.</p>
</div>
</div>
<div class="col-lg-3 col-md-6 sr-step">
<h3 class="step-number">02</h3>
<div class="step-text">Text text text text.</div>
</div>
<div class="col-lg-3 col-md-6 sr-step">
<h3 class="step-number">03</h3>
<div class="step-text">Text text text text.</div>
</div>
<div class="col-lg-3 col-md-6 sr-step">
<h3 class="step-number">04</h3>
<div class="step-text">Text text text text.</div>
</div>
</div>发布于 2019-08-08 05:10:05
在定序器大修期间,很明显,interval参数的可选性质是不必要的混乱。它现在与所有其他选项并存。
// v3
window.sr = new ScrollReveal();
sr.reveal('.tile', { reset: true }, 16);
// v4
ScrollReveal().reveal('.tile', { reset: true, interval: 16 });发布于 2016-08-02 20:55:08
已在200上找到延迟
sr.reveal('.sr-icons', {
duration: 600,
scale: 0.3,
distance: '0px'
}, 200);https://stackoverflow.com/questions/38720747
复制相似问题