私はフクロウカルーセルでキャプションを作ろうとしています。私はanimate.cssを使用しています。 カルーセル内のキャプションにアニメーションを追加しましたが、すべてのアニメーションで機能しません。最初のスライドキャプションだけがアニメーションを持っています。ここに私のコードです。owlカルーセルキャプションwith animate.css
<div class="owl-carousel owl-theme">
<div class="item"><img src="http://placehold.it/900x1200">
<div class="caption"><h1 class="animated bounce">First Caption</h1></div>
</div>
<div class="item"><img src="http://placehold.it/900x1200">
<div class="caption"><h1 class="animated bounce">Second Caption</h1></div>
</div>
<div class="item"><img src="http://placehold.it/900x1200">
<div class="caption"><h1 class="animated bounce">Third Caption</h1></div>
</div>
<div class="item"><img src="http://placehold.it/900x1200">
<div class="caption"><h1 class="animated bounce">Fourth Caption</h1></div>
</div>
</div><!-- End Carousel -->
<style>
.caption {
position: absolute;
font-size: 1.5em;
top: 0;
left: 15px;
border:1px solid;
color:orange;
text-shadow: 2px 2px 1px #000;
padding-top: 60vh;
}
</style>
<script>
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
items:1,
loop:true,
autoplay:true,
autoplayTimeout:3500,
nav:true,
})
});
</script>
私はあなたの助けを待っています。私はつまらない。
'.animated' cssを' .active' ?あなたのコードをjsfiddleに再フォーマットすれば、人々が手助けするのがより簡単になります。 – Sam0
はい、そうです、私のフィドルは [jsfiddle](https://jsfiddle.net/xx7gf90c/) –