Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bxslider not working properly for dynamically loaded content

Tags:

bxslider

Had to use bxslider for one of the app. I have some issues while trying to implement bxslider with dynamically loaded content over ajax.

It works abruptly. Interestingly when there is a slight change in view port either by opening dev tools or window size change, it does sometime works.

Would just like to understand has anyone faced this issue before and what could be the workaround.

Thanks

like image 800
sammy_ji Avatar asked Dec 05 '25 02:12

sammy_ji


1 Answers

BxSlider now contains two new methods:

  • reloadSlider()
  • destroySlider()

After loading new content into your slider, try calling reloadSlider(), as this will re-initialize the slider and accomodate the new slides.

Check here for code examples:

  • http://bxslider.com/examples/reload-slider
  • http://bxslider.com/examples/reload-slider-settings
like image 98
stevenwanderski Avatar answered Dec 09 '25 03:12

stevenwanderski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!