FlexSlider icon indicating copy to clipboard operation
FlexSlider copied to clipboard

itemWidth dones't work if Modernizr is included?

Open gvinson opened this issue 9 years ago • 1 comments

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
  });
});

Anyone else experiencing this?

gvinson avatar Jun 16 '15 21:06 gvinson