Skip to content

Instantly share code, notes, and snippets.

@ramzesimus
Last active December 17, 2015 18:49
Show Gist options
  • Save ramzesimus/5655689 to your computer and use it in GitHub Desktop.
Save ramzesimus/5655689 to your computer and use it in GitHub Desktop.
if (jQuery.browser.msie &&jQuery.browser.version<9) {
jQuery(document).ready(function() {
var carouselConteiner = jQuery("#caroufredsel_carousel1");
carouselConteiner.carouFredSel({
responsive : true,
width: '100%',
items : {
width : 225,
height: 'variable',
visible : {
min : 1,
max : 5
},
minimum: 1
},
scroll: {
items: 1,
fx: "scroll",
easing: "swing",
duration: 500,
queue: true
},
auto: false,
next: "#carousel_carousel1_next",
prev: "#carousel_carousel1_prev",
swipe:{
onTouch: true
}
});
});
} else {
jQuery(window).load(function() {
var carouselConteiner = jQuery("#caroufredsel_carousel1");
carouselConteiner.carouFredSel({
responsive : true,
width: '100%',
items : {
width : 225,
height: 'variable',
visible : {
min : 1,
max : 5
},
minimum: 1
},
scroll: {
items: 1,
fx: "scroll",
easing: "swing",
duration: 500,
queue: true
},
auto: false,
next: "#carousel_carousel1_next",
prev: "#carousel_carousel1_prev",
swipe:{
onTouch: true
}
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment