Skip to content

Instantly share code, notes, and snippets.

@ChezFre
Created February 19, 2014 09:25
Show Gist options
  • Save ChezFre/9088717 to your computer and use it in GitHub Desktop.
Save ChezFre/9088717 to your computer and use it in GitHub Desktop.
Horizontal Caroufredsel slider showing a fixed number of items (n), scrolling n number of items per slide
var $prevBtn = $('<button />', { id: 'prevShirtsBtn' });
var $nextBtn = $('<button />', { id: 'nextShirtsBtn' });
$("#element").before($prevBtn).after($nextBtn)
.carouFredSel({
width: '100%',
debug: false,
items: {
visible: '4'
},
scroll: {
duration: 1500
},
auto: {
play: true,
timeoutDuration: 5500
},
prev: {
button: $prevBtn
},
next: {
button: $nextBtn
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment