Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not start on the first slider #1807

Open
ghost opened this issue Aug 23, 2022 · 1 comment
Open

does not start on the first slider #1807

ghost opened this issue Aug 23, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2022

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
Copy link
Author

ghost commented Aug 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants