diff --git a/frontend/components/home/Preview.vue b/frontend/components/home/Preview.vue index aa53d5f..8c49999 100644 --- a/frontend/components/home/Preview.vue +++ b/frontend/components/home/Preview.vue @@ -14,12 +14,12 @@ const activeSlideVideo = ref<"left" | "right" | "none">("none"); const draggableEl = ref(null); const previewContainerEl = ref(null); -const heymlzElement = useTemplateRef("heymlzElement"); -const heymlzElementIsVisible = useElementVisibility(heymlzElement, { - rootMargin: "0px 0px -40% 0px", -}); +// const heymlzElement = useTemplateRef("heymlzElement"); +// const heymlzElementIsVisible = useElementVisibility(heymlzElement, { +// rootMargin: "0px 0px -40% 0px", +// }); -const showHeymlzAnimation = ref(false); +// const showHeymlzAnimation = ref(false); const { x: dragAxisX } = useDraggable(draggableEl, { initialValue: { x: 0, y: 0 }, @@ -28,22 +28,22 @@ const { x: dragAxisX } = useDraggable(draggableEl, { // watch -watch( - heymlzElementIsVisible, - (newValue) => { - if (newValue) { - setTimeout(() => { - showHeymlzAnimation.value = true; - setTimeout(() => { - showHeymlzAnimation.value = false; - }, 3200); - }, 400); - } - }, - { - once: true, - } -); +// watch( +// heymlzElementIsVisible, +// (newValue) => { +// if (newValue) { +// setTimeout(() => { +// showHeymlzAnimation.value = true; +// setTimeout(() => { +// showHeymlzAnimation.value = false; +// }, 3200); +// }, 400); +// } +// }, +// { +// once: true, +// } +// ); watch( () => clipPathPercent.value, @@ -72,7 +72,7 @@ watch(