Closed EmilienRamos closed 5 years ago
I'm sorry to see you're having trouble with Flickity. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.
Well, it's very weird. I'm using Flickity several times on my website.
For example, on HomePage, it's ok. But on others pages it doesn't work. It's like my configuration is not good but I don't know what is wrong ...
I notice that property "left" is never loaded on child elements. But when I resize the window, it appear in HTML DOM. I will search a solution before create a reduced test case.
Did you solve this problem in the end? I've exactly the same problem in my website right now.
Hello ! Yeah, I solved it, but it’s very complicated .. I worked with Wordpress - Divi theme - Tabs module. So the issue is very specific.
I solved it by using builder on the web page, and not with the back office.
i have the same issue and do not know how to fix
The bug still exists. I didn't see any reasons for it... One page works properly, another one doesn't.
window.onload = () => {
flkty.reloadCells()
flkty.resize()
}
this worked for me
I'm working with Flickity Slider, and I have an issue.
Only the last image is shown. But when I resize window (just 1px), it works and it display all images.
This is how I display flickity slider
jQuery('.plansItemImagesSlider').flickity({ autoPlay: 3000, imagesLoaded: true, pauseAutoPlayOnHover: true });
WHAT I'VE TRIED
Trying to simule a window resize :
if (jQuery('.plansItemImagesSlider').length > 0){ jQuery(window).resize(); }
Trying to use Flickity doc :
if (jQuery('.plansItemImagesSlider').length > 0){ jQuery(this).flickity('reloadCells'); }
ANDif (jQuery('.plansItemImagesSlider').length > 0){ jQuery(this).flickity('resize'); }
But I'm getting an error :
flickity not initialized. Cannot call methods, i.e. $().flickity("reloadCells")
I also tried to put it together :
jQuery('.plansItemImagesSlider').flickity({ autoPlay: 3000, imagesLoaded: true, pauseAutoPlayOnHover: true }, 'reposition' /* OR 'resize' */);