ganlanyuan/tiny-slider

Question: blank space when hidding elements

Opened this issue · 0 comments

I am working on a site that, when selecting a variant of a product, will only show the images corresponding to that variant. The program works correctly, only that, when displaying on screen the images of the variants the slider has a white space at the end and also does not refresh the number of pages of the slider having precisely a completely empty page at the end.

I'm suspecting it may be because the div elements are left in "display:none" or because the slider will need to be refreshed somehow.

This is a video of the problem:
https://gyazo.com/7db84360deb10736c239e4c9aefeb0e4

Thanks!