-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Stop "auto: true" if only one slide #607
Comments
If your bxSlider() call looks like this: $('#slider').bxSlider({
auto: true
}); you could workaround it like this: $('#slider').bxSlider({
auto: ($('#slider').children().length < 2) ? false : true
}); Of course this check had to be in the plugin, but it seems it isn't maintained anymore. |
Hi, I have the same issue, I've tried the fix posted by nightowl8: it works when you have only one slide, but if you have 2 or more slides only the first one is visible and the slideshow doesn't work anymore. |
nobody? :-( |
Hello @fedeartica, As this plugin seems to be dead (at least from the maintainer side) I'd suggest using an other slider which is maintained actively. You won't get much support here. I switched to OwlCarousel 2 (which can be used as a carousel or a regular slider), for example, but there are other great sliders out there, it depends heavily on your needs. |
Hi, $('#slider').bxSlider({ It works, but if you insert a second slide the slider shows always one dot. |
Related to #712, closing due to duplication of issue and housekeeping. Will address in next update. As a note: the code presented here doesn't work for 2 slides because you are testing for |
I have seen numerous comments about this issue, but is there an official fix for this yet? I am do not write Jquery so would need it in plain english.
Basically I need my slideshow to not 'auto' animate if there is only one slide. Currently my slideshow has a fade animation which looks odd when there is only one item in the slideshow.
I am surprised this isn't accounted for in the default code?
The text was updated successfully, but these errors were encountered: