Swiper only shows 1 slide with video instead of 3 - how to refresh swiper?

I’ve got a swiper with mutiple videos in it. Onload swiper shows only 1 slide instead of 3. Only when resizing the window, swiper shows all of the 3 slides. Is there a way to “refresh” swiper after all of the youtube Videos have been loaded in order to show up all of the slides?

The swiper has an update action that you can call.

you mean the change and rendered event?

You can add actions to dynamic events, do you have some event where you can listen to to check if the videos are loaded?

image

If you want to run the action using plain javascript use something like dmx.parse("swiper1.update()").