Skip to content

Instantly share code, notes, and snippets.

@jheg
Created October 24, 2014 22:35
Show Gist options
  • Save jheg/891c6daf9da56624fa8a to your computer and use it in GitHub Desktop.
Save jheg/891c6daf9da56624fa8a to your computer and use it in GitHub Desktop.
jq
<script type="text/javascript">
$(window).load(function() {
// The slider being synced must be initialized first
$('#carousel').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
itemWidth: 210,
itemMargin: 5,
asNavFor: '#slider'
});
$('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
sync: "#carousel"
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment