woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.91k stars 1.69k forks source link

does not start on the first slider #1807

Closed ghost closed 2 months ago

ghost commented 2 years ago

a cordial greeting and first of all thank you for the wonderful plugin, I am using it to animate a website where the content of the slider is loaded from ajax, the problem that I present is that the slider, instead of initializing in the first slide, starts in the position 0 I share my settings

$('#slider').flexslider({
                    keyboard: false,
                    directionNav: true,
                    animation: "slide",
                    randomize: false,
                    reverse: false,
                    controlNav: false,
                    slideshowSpeed: 6000,
                    startAt: 0,
                    initDelay: 300,
                    prevText: "",
                    nextText: "",
})
ghost commented 2 years ago

image

As you can see in the screenshot, the slider_0 would be the first slide which has the flex-active-slide class, but that is not the case, because the next slider_1 is shown, because of this I cannot know how to take the height of the element to dynamically adjust the viewport