Created
February 19, 2014 09:25
-
-
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
This file contains hidden or 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
| 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