javascript - Flexslider only Horizontal Slide not work -
i ask problem find error.. error appears :
<script type="text/javascript"> (function($){ $(document).ready(function(){ $('#banner-slider-text').flexslider({ animation: "slide", direction: 'horizontal', }); }); })(jquery);
exactly on "slide" "horizontal" appears problem dont slide ... when in code view chrome or firebug see "activ" slide changed not visual. dont slide anyways. slide + vertical work, fade + vertical work, fade + horizontal work, slide + horizontal not work.
flexslider vers 2.* jquery ver 1.9 - 2.* testet shopware vers 4.3.6
slider coded in smarty tpl slider options , loaded in home index tpl mainpage.
after alot of debugging found out @ code line 928 style set , here width slider.computedw variable nan ... thats reason why dont set ... , @ code line 874 target transform translate3d nan ... no transform element animation
928 settimeout(function(){ slider.domath(); slider.newslides.css({"width": slider.computedw, "float": "left", "display": "block"}); // smooth height: if (slider.vars.smoothheight) { methods.smoothheight(); } }, (type === "init") ? 100 : 0); 874 if (slider.transitions) { target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)"; dur = (dur !== undefined) ? (dur/1000) + "s" : "0s"; slider.container.css("-" + slider.pfx + "-transition-duration", dur); slider.container.css("transition-duration", dur); }
maybe thats reason why slide horizontal dont work .... not sure
Comments
Post a Comment