lukethompson / jquery.swipeSlider

jQuery content slider with touch support.
MIT License
3 stars 0 forks source link

jquery.swipeSlider

jQuery content slider with touch support. Demo

Installation

To install copy the javascript and stylesheet files into your project and add the following snippet to the header (requries jQuery):

<link href="https://github.com/lukethompson/jquery.swipeSlider/blob/master/jquery.swipeslider.css" rel="stylesheet" type="text/css" />

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="https://github.com/lukethompson/jquery.swipeSlider/raw/master/jquery.swipeslider.js" type="text/javascript"></script>

Example

JavaScript

$('#.slider').swipeSlider();

HTML Element

<div id="slider">
  <div>
     <div>
       slide 1
     </div>
     <div>
       slide 2
     </div>
     <div>
       slide 3
     </div>
   </div>
</div>