jQuery jQueryCycle 可以一次显示多张图片,但一次滑动一张吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9006452/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 10:11:50  来源:igfitidea点击:

Can jQueryCycle show multiple images at once, but slide one at a time?

jqueryjquery-plugins

提问by SomethingOn

I want to have 3+ images on a page with 3 images visible and be able to advance one image at a time. Something like this:

我想在一个页面上有 3 个以上的图像,其中 3 个图像可见,并且能够一次推进一个图像。像这样的东西:

[Slide 1][Slide 2][Slide 3]

Then when the user clicks Next

然后当用户点击下一步

[Slide 2][Slide 3][Slide 4]

Is it possible to do this with jQueryCycle? If not, what jQuery plugin would you recommend for this?

是否可以使用jQueryCycle做到这一点?如果没有,您会为此推荐什么 jQuery 插件?

This exampleshows 3 images, but it scrolls all 3 when clicking the nav buttons.

示例显示 3 个图像,但单击导航按钮时会滚动所有 3 个图像。

回答by Stefan

jCarouselis quite common for this sort of thing but I′m sure you can find other ones as well.

jCarousel在这类事情中很常见,但我相信你也可以找到其他的。

UPDATE

更新

Created a demothat makes use of the scrollsetting;

创建了一个使用该设置的演示scroll

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        wrap: 'circular',
        scroll: 1
    });
});

回答by SomethingOn

According to @malsup himself, no :(

根据@malsup 本人的说法,没有 :(

https://twitter.com/#!/malsup/status/162288824737734656

https://twitter.com/#!/malsup/status/162288824737734656

回答by marcvangend

jQuery Cycle 2 can do this; it's called the "carousel transition". A demo and documentation can be found on Cycle 2 Carousel. Note that you need to add the optional "Carousel" plugin available from the Cycle 2 download page.

jQuery Cycle 2 可以做到这一点;它被称为“轮播过渡”。可以在Cycle 2 Carousel上找到演示和文档。请注意,您需要添加可从Cycle 2 下载页面 中获得的可选“Carousel”插件。