【发布时间】:2017-02-20 05:21:59
【问题描述】:
是否有关于多个幻灯片项目上的动画的任何功能?我已经在单张幻灯片上尝试过它,但不能在多项目幻灯片上工作。
您可以使用JSFiddle或以下代码进行调试。
$('.loop-test').owlCarousel({
center: true,
items: 2,
loop: true,
margin: 10,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
dots: true
});
<link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.0/assets/owl.theme.green.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.0/assets/owl.theme.default.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.0/assets/owl.carousel.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.0/owl.carousel.min.js"></script>
<div class="owl-carousel loop-test">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
</div>
任何指针将不胜感激!
谢谢。
【问题讨论】:
-
您的小提琴未链接。请链接它,以便我看到您尝试过的内容。
-
这里是小提琴链接jsfiddle.net/f35ar43x/1
-
您能解释一下期望的行为吗?这将有助于获得更好的解决方案。
-
你想要不同的幻灯片动画吗?
-
是的,我想更改自动播放的动画样式
标签: javascript html css owl-carousel