How to make Bootstrap carousel slider use mobile left/right swipe

前端 未结 10 1033
走了就别回头了
走了就别回头了 2020-11-29 15:49

DEMO JSSFIDDLE

  
10条回答
  •  温柔的废话
    2020-11-29 16:23

    UPDATE:

    I came up with this solution when I was pretty new to web design. Now that I am older and wiser, the answer Liam gave seems to be a better option. See the next top answer; it is a more productive solution.

    I worked on a project recently and this example worked perfectly. I am giving you the link below.

    First you have to add jQuery mobile:

    http://jquerymobile.com/

    This adds the touch functionality, and then you just have to make events such as swipe:

    
    

    The link is below, where you can find the tutorial I used:

    http://lazcreative.com/blog/how-to/how-to-adding-swipe-support-to-bootstraps-carousel/

提交回复
热议问题