如何在没有动画的情况下移动到下一张幻灯片BxSlider? [英] How to move to the next slide without animation for BxSlider?
本文介绍了如何在没有动画的情况下移动到下一张幻灯片BxSlider?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用jQuery插件 bxSlider .
I am using a jQuery plugin bxSlider.
有两个自定义按钮,prev
和next
用于切换滑动.
但是,在特定情况下,我需要移动到没有动画的幻灯片,我希望它是即时的.
There are two custom buttons, prev
and next
to toggle the sliding.
However, there is a specific situation where I need to move to a slide without animation, I want it to be instant.
有没有办法做到这一点?
Is there a way to achieve this?
推荐答案
从可用选项,
将选项speed
设置为0
,您将不会获得任何动画.
Set the option speed
to 0
, you will not get any animation.
$('.bxslider').bxSlider({
mode: 'fade',
speed: 0,
captions: true
});
这篇关于如何在没有动画的情况下移动到下一张幻灯片BxSlider?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文