Created
October 24, 2014 22:35
-
-
Save jheg/891c6daf9da56624fa8a to your computer and use it in GitHub Desktop.
jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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