Last active
August 29, 2015 14:16
-
-
Save keeprock/200037fa10a7f3beabec to your computer and use it in GitHub Desktop.
Caroufredsel basic skeleton call # update 1
with pagination
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
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' | |
} | |
}); | |
} |
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
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