Skip to content

Instantly share code, notes, and snippets.

@zetareticoli
Created November 15, 2013 18:19
Show Gist options
  • Save zetareticoli/7489104 to your computer and use it in GitHub Desktop.
Save zetareticoli/7489104 to your computer and use it in GitHub Desktop.
Flexslider slides counter
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
controlsContainer: ".flex-container",
start: function(slider) {
$('.total-slides').text(slider.count);
},
after: function(slider) {
$('.current-slide').text(slider.currentSlide);
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment