XF 2.2 How to initialize a carousel in a popup?

Orit

Active member
Hi :)

I have a xenforo page with a few different links.
Each of the links are to XF pages with a carousel in them. The carousels are initialized by data-xf-init="carousel" and work as they should when opened in their dedicated page.
I want to open each of the links in an overlay, but when doing so, the carousel does not work at all!
How can I initialize the carousel in the popup?

I've been working on this for quite a bit. I tried using swiper.js, but it would only initalize the carousel in the first popup, but not when I try opening another popup in the same page. I thought data-xf-init="carousel" would help but I'm stuck here too...

Is there anything I can do?

Thanks!!
 
Back
Top Bottom