If you don't mind using javascript, you can use Swipe.js
The html structure goes like so:
<div id='slider' class='swipe'>
<div class='swipe-wrap'>
<div></div>
<div></div>
<div></div>
</div>
</div>
The CSS looks like this:
.swipe {
overflow: hidden;
visibility: hidden;
position: relative;
}
.swipe-wrap {
overflow: hidden;
position: relative;
}
.swipe-wrap > div {
float:left;
width:100%;
position: relative;
}
And the Javascript looks like this:
window.onload = function() {
window.mySwipe = Swipe(document.getElementById('slider'));
}
Don't forget to include the javascript file:
https://github.com/bradbirdsall/Swipe/blob/master/swipe.js
Here's a demo
Edit Providing you only want this to apply to mobile devices, here's the mobile specific code:
The HTML would change to this:
<div id='slider'>
<div>
<div></div>
<div></div>
<div></div>
</div>
</div>
And the JavaScript would change to this:
window.onload = function() {
if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
var slider = document.getElementById('slider');
if (slider.classList) {
slider.classList.add('swipe');
slider.getElementsByTagName('div')[0].classList.add('swipe-wrap');
} else {
slider.className += 'swipe';
slider.getElementsByTagName('div')[0].className += 'swipe-wrap';
}
window.mySwipe = Swipe(document.getElementById('slider'));
}
}
Here's another demo