bqworks / slider-pro

A modular, responsive and touch-enabled jQuery slider plugin that enables you to create elegant and professionally looking sliders.
MIT License
877 stars 390 forks source link

Display only the first time #281

Closed radiopenchi1976 closed 3 years ago

radiopenchi1976 commented 5 years ago

The first image is displayed, the slide from the second image is displayed, and when you go to the last slide, I want to return to the second piece instead of the first piece and loop it repeatedly. What should I do?

1st time slide 0, slide 1, slide 2, slide 3, slide 4 After this time slide 1, slide 2, slde 3, slide 4 (this loop)

davidghi commented 5 years ago

Hi. You could use the slider's API to remove the first slide at some point, so that only slides 1-4 remain in the slider. To remove a slide, first you need to remove the HTML of that slide and then call the update method. Let me know if you need further help.