Skip to content

Instantly share code, notes, and snippets.

@joseadanof
Created March 6, 2014 01:09
Show Gist options
  • Save joseadanof/9380253 to your computer and use it in GitHub Desktop.
Save joseadanof/9380253 to your computer and use it in GitHub Desktop.
Autoplay Bootstrap Carousel
Put this lines before </body> tag.
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(document).ready(function() {
$('#myCarousel').carousel({ interval: 3000, cycle: true });
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment