Skip to content

Instantly share code, notes, and snippets.

@benshimmin
Last active October 9, 2015 10:27
Show Gist options
  • Save benshimmin/3488473 to your computer and use it in GitHub Desktop.
Save benshimmin/3488473 to your computer and use it in GitHub Desktop.
Ridiculous jQuery carousel, in CoffeeScript - supports "blobs" and a timer
<!-- compile the above, and then load it like this: -->
<script type="text/javascript" src="carousel.js"></script>
<script type="text/javascript">
$(function() { carousel(".carousel"); });
</script>
<!-- You'll need some CSS for classes including .carousel-item,
.carousel-controls, and .carousel-blob -->
<!-- Markup vaguely like this: -->
<div class="carousel">
<div class="carousel-inner">
<div class="carousel-item"> ... </div>
<div class="carousel-item"> ... </div>
<div class="carousel-item"> ... </div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment