blob: fd2c2475f85114cd47e19fe703a769352ba32ad5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<div class="flex justify-around">
<div class="swiper">
<div class="swiper-wrapper">
{% for url in avatar_urls %}
<img src="{{url}}" alt="" class="swiper-slide"/>
{% endfor %}
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
<script>
const swiper = new Swiper(".swiper", {
direction: "horizontal",
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
</script>
<style>
.swiper {
width: 30%;
}
</style>
|