Only load timeline in active slide

This commit is contained in:
Freeplay 2023-05-25 19:32:56 -04:00
parent 609aa0aa6a
commit 22ed3f47a6
2 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,9 @@
"
@swiper="setSwiperRef"
@slide-change="onSlideChange"
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
>
<swiper-slide
v-for="index in timelines"
@ -51,6 +54,7 @@
:virtual-index="index"
>
<XTimeline
v-if="index == timelines[swiperRef.activeIndex]"
ref="tl"
:key="src"
class="tl"

View File

@ -113,6 +113,10 @@ html, body {
padding: 0;
}
.swiper-slide {
height: unset !important;
}
a {
text-decoration: none;
cursor: pointer;