Skip to content

Instantly share code, notes, and snippets.

@keeprock
Last active August 29, 2015 14:16
Show Gist options
  • Save keeprock/200037fa10a7f3beabec to your computer and use it in GitHub Desktop.
Save keeprock/200037fa10a7f3beabec to your computer and use it in GitHub Desktop.
Caroufredsel basic skeleton call # update 1 with pagination
var specials = $('.specials-list ul li');
if (specials.length) {
specials.parent().carouFredSel({
items: {
width: 590,
visible: 1
},
pagination: {
container: ".slider_box.action_slider .slider_nav"
},
auto: {
play: false,
timeoutDuration: 2000
},
scroll: {
items: 1,
duration: 500,
fx: 'scroll'
}
});
}
if ($('SELECTOR').once().length) {
$('SELECTOR').carouFredSel({
width: 960,
auto: {
play: false,
timeoutDuration: 4000,
infinite: true
},
items: {
visible: 1
},
scroll: {
duration: 1000,
easing: 'linear',
fx: 'directscroll'
},
prev: {
button: '#prev',
key: 'prev'
},
next: {
button: '#next',
key: 'next'
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment