Skip to content

Instantly share code, notes, and snippets.



Created Oct 25, 2012
What would you like to do?
Basic call of jQuery Cycle for Adapt
// banner slideshow
if ($('#js-banner-wrapper').children().length > 1) {
fx: 'fade',
activePagerClass: 'active',
timeout: 0,
next: '#js-banner-next',
prev: '#js-banner-prev',
width: '100%',
fit: 1,
pager: '#js-banner-pager',
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#"><img src="' + $(slide).data('imgsrc') + '" width="72" height="45" /></a></li>';
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment