glide
glide copied to clipboard
Glide resetting slide width to zero
I have been experiencing a strange issue whereby glide seems to be resetting/destroying itself. When this happens the glide__slides have there width and translate styles set to 0px. The same happens with each glide__slide. See below:
<ul class="glide__slides" style="transition: transform 0ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s; width: 0px; transform: translate3d(0px, 0px, 0px);">
<li class="glide__slide glide__slide--active" style="width: 0px; margin-right: 0px;">
Unfortunately I cannot provide an example/code sample for the issue but I would be interested to know if this is a known bug under certain circumstances or if anybody else has faced the same and/or similar issue?
In my particular case the issue arrises when the sliders are "out of view", I have seen this happen when I have popups appearing (over the sliders) as well as tab panels hiding and showing. Currently my "hacky" fix is to udate glide after those particular events happen (e.g. popup close) but this of course isn't ideal.
Any help would be great! Cheers
Will have a look if you can provide a reproducible example.
Will have a look if you can provide a reproducible example.
I will endevour to get one together soon.