How to create a Swiper where the slides are based on a repeat?


I’m looking to create a swiper where the number of images and the src for each image is based on a loop through an array.

How would I do that? I just wrote this to try it out (just repeating the same image 3 times)

        <div is="dmx-swiper" id="swiper3">
            <div dmx-repeat:repeat3="3">
                <div class="swiper-slide"><img src="assets/img/food-4.jpg" width="100%"></div>

But this is what I get instead. 3 photos side by side instead of a swiper.

Community Page
Last updated: