I am having a problem where if I include modernizr (before or after initializing the slider), the itemWidth is ignored until I resize the window. If I set the animation to fade instead of slide, the bug does not occur.
Here is the code I'm using:
$(document).ready(function() {
// #carousel is the nav for #slider
$('#carousel').flexslider({
animation: "slide",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 210,
itemMargin:5,
asNavFor: '#slider'
});
// Main slider
$('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
sync: "#carousel",
itemWidth: 672,
minItems: 1,
maxItems: 1
});
});
I am having a problem where if I include modernizr (before or after initializing the slider), the itemWidth is ignored until I resize the window. If I set the animation to fade instead of slide, the bug does not occur.
Here is the code I'm using:
Anyone else experiencing this?