Twitter bootstrap and carousel touch -
i have seen ltos of solution how create carousel in bootstrap touhch/swipe. solutions used not working me. slider still dead , works on arrows. solution utilize of jquery mobile:
<script src="js/jquery.mobile-1.4.2.js"></script> <script> $(document).ready(function() { $("#carousel-example-generic").swiperight(function() { $(this).carousel('prev'); }); $("#carousel-example-generic").swipeleft(function() { $(this).carousel('next'); }); }); </script>
my carousel
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
thanks!
this may help: http://lazcreative.com/blog/how-to/how-to-adding-swipe-support-to-bootstraps-carousel/
<script src=”jquery.mobile.custom.min.js”></script> <script> $(document).ready(function() { $("#mycarousel").swiperight(function() { $("#mycarousel").carousel('prev'); }); $("#mycarousel").swipeleft(function() { $("#mycarousel").carousel('next'); }); }); </script>
twitter-bootstrap
No comments:
Post a Comment