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

Issues in Loop option #476

Open
dhhuy0704 opened this issue Oct 13, 2021 · 2 comments
Open

Issues in Loop option #476

dhhuy0704 opened this issue Oct 13, 2021 · 2 comments

Comments

@dhhuy0704
Copy link

Hi, I will make it short !

  1. Loop option doesn't run with "true" or "1" or 1.
    I have tried to store options value in database and put it back to lightSlider initialized function. However, loop option doesn't understand "true" or "1" or 1, only true (boolean) is accepted.

  2. The loop of images doesn't run circle.
    My options configuration:

$("#content-slider").lightSlider({
        auto: "true",
        enableDrag: "true",
        enableTouch: "true",
        item: "2",
        keyPress: "false",
        loop: "true",
        pause: "4000",
        speed: "2000"
    })

If I set speed: "2000" and above, the loop ran to the end and jump back to the first images instead of running first image at the end of slide.
1111

If I set speed: "1000" and below, the loop ran as expected.

2222

Thank you.

@ghost
Copy link

ghost commented Jan 31, 2022

Same problem for me.

@larrynalzaro
Copy link

Dude,

Remove the quotes from the true value. That's why it's not looping; it does not understand "true".

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

2 participants