jQuery轮播,无需克隆 [英] jQuery carousel without cloning

查看:101
本文介绍了jQuery轮播,无需克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上使用CanvasJS( http://canvasjs.com/),但我想要将它们放入轮播中,说起来容易做起来难.

I'm using CanvasJS (http://canvasjs.com/) for charts on my site, but I want to put them in a carousel which turned out to be easier said than done.

我尝试了几种不同的jQuery旋转木马插件,但它们似乎都具有相同的克隆功能,而我无法使用CanvasJS.

I have tried a few different jQuery carousel plugins, but they all seem to have cloning in common, which I can't get to work with CanvasJS.

基本上,我发现的轮播会创建可见元素的克隆,并将其放置在视口之外以完成循环.它会克隆CanvasJS所需的所有canvas元素,但不会克隆仅在原始元素上绘制的实际图表.

Basically the carousels I have found creates clones of the visible elements and place them outside the viewport to complete the loop. It clones all the canvas elements needed for CanvasJS, but not the actual charts which are only drawn on the original elements.

是否有不使用克隆的轮播插件,或者有其他解决方案可以使CanvasJS滑动图表起作用?

Is there any carousel plugins that doesn't use cloning, or is there another solution to make sliding CanvasJS charts work?

推荐答案

BootStrap 3具有不使用克隆的轮播.

BootStrap 3 has a Carousel that does not use cloning.

http://getbootstrap.com/

还有一个旋转木马的例子:

And an example of a carousel here:

http://bootply.com/99642

这篇关于jQuery轮播,无需克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆