Connect thumbnails

This commit is contained in:
marzban-dev
2026-05-25 02:27:13 +03:30
parent b490bf01c7
commit ecc348753e
+5 -4
View File
@@ -117,7 +117,7 @@ const initializeGsapAnimation = () => {
const resetTimelineForMobile = () => { const resetTimelineForMobile = () => {
gsap.to("#header-navbar", { gsap.to("#header-navbar", {
background: "white", background: "white",
boxShadow: "0 10px 15px -3px rgba(0,0,0,0.05)" boxShadow: "0 10px 15px -3px rgba(0,0,0,0.05)",
}); });
gsap.to(".header-navbar-item", { gsap.to(".header-navbar-item", {
filter: "invert(0%)", filter: "invert(0%)",
@@ -182,12 +182,13 @@ onUnmounted(() => {
<div <div
id="header-slider-wrapper" id="header-slider-wrapper"
class="relative" class="relative"
:class="swiper_instance ? '' : 'min-h-svh'" :class="swiper_instance ? '' : 'min-h-svh bg-black'"
> >
<Swiper <Swiper
ref="observerTarget" ref="observerTarget"
:class="swiper_instance ? '' : 'opacity-0'"
:slides-per-view="slidesPerView" :slides-per-view="slidesPerView"
:loop="true" :loop="false"
:centered-slides="true" :centered-slides="true"
:breakpoints="{ :breakpoints="{
768: { 768: {
@@ -211,7 +212,7 @@ onUnmounted(() => {
webkit-playsinline webkit-playsinline
class="slide-video absolute inset-0 size-full object-cover brightness-90" class="slide-video absolute inset-0 size-full object-cover brightness-90"
:src="slide.video" :src="slide.video"
poster="/img/test-thumbnail.jpeg" :poster="slide.image!"
/> />
</template> </template>