jQuery carousel without cloning

爷,独闯天下 提交于 2019-12-11 06:09:37

问题


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.

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.

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.

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


回答1:


BootStrap 3 has a Carousel that does not use cloning.

http://getbootstrap.com/

And an example of a carousel here:

http://bootply.com/99642



来源:https://stackoverflow.com/questions/20492551/jquery-carousel-without-cloning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!