lightslider
lightslider copied to clipboard
On most page loads the slider cannot be seen
It works sometimes but most of the time it is not to be seen. Inspecting css/html shows that the code is there but the height of .lSSlideWrapper.usingCss
is zero.
when images are large and resized with CSS and if "autoWidth" is set to true, then width of whole <ul>
element becomes zero and slider is not to be seen. after loading slider, if we resize the browser window it becomes visible.
when images are large and resized with CSS and if "autoWidth" is set to true, then width of whole
<ul>
element becomes zero and slider is not to be seen. after loading slider, if we resize the browser window it becomes visible.
This is happening to me too exactly as described here.
$(window).on("load", function() {
slider.refresh();
})
Or create the slider on load
.