【发布时间】:2017-12-28 17:27:42
【问题描述】:
我正在使用js-caurousal 更改工作正常的背景图像。除此之外,我还为每张幻灯片添加了标题,我使用 animation.css 和 wow.js 使用淡入淡出效果制作动画。
我遇到的问题是动画只播放一次,我想在幻灯片活动时播放标题文本的动画。我试图寻找解决方案,但找不到太多。
所以我想从具有slide-caption 类的元素中添加和删除wow fadeIn。
下面是幻灯片的代码
<div class="js-carousel u-carousel-v5" data-autoplay="true" data-infinite="true" data-fade="true" data-speed="4000">
<div class="js-slide g-bg-img-hero g-height-100vh--md g-min-height-300" aria-hidden="true" style="background-image: url(assets/img/1.jpg);">
<h3 class="slide-caption wow fadeIn" data-animation="animated fadeIn" data-wow-delay="4s">Image One</h3>
</div>
<div class="js-slide g-bg-img-hero g-height-100vh--md g-min-height-300" aria-hidden="true" style="background-image: url(assets/img/2.jpg);">
<h3 class="slide-caption wow fadeIn" data-animation="animated fadeIn" data-wow-delay="4s">Image Two</h3>
</div>
</div>
如何使用$( ":hidden").attr( "aria-hidden", "true" ) 在slide-caption 中添加和删除css
【问题讨论】:
-
你确定不是
caurousel带E -
@RokoC.Buljan,我正在使用这个模板htmlstream.com/preview/unify-v2.1/one-pages/wedding/index.html,它有 Carousal 说,但文档没有提到究竟是哪个 carousel
-
@RokoC.Buljan:甚至是
carousel(只有一个u)。 -
@T.J.Crowder 我什至没有注意到第一个 U... - 所以我已经有一个页面,上面有我见过的所有轮播拼写错误:D
标签: javascript jquery css animation