diff --git a/components/app/windows/aboutNewsOrg.vue b/components/app/windows/aboutNewsOrg.vue index bb4c068..f0515ae 100644 --- a/components/app/windows/aboutNewsOrg.vue +++ b/components/app/windows/aboutNewsOrg.vue @@ -33,12 +33,21 @@ const { const orgNameAnimation = ref(null); -onMounted(() => { - gsap.to(orgNameAnimation.value, { - duration: 1, - scrambleText: fetchNewsOrgInfo.value?.title, - }); -}); +watch( + () => fetchNewsOrgInfo.value, + (newValue) => { + if (newValue?.title) { + nextTick(() => { + gsap.to(orgNameAnimation.value, { + duration: 1, + scrambleText: newValue.title, + ease: "none", + }); + }); + } + }, + { immediate: true }, +);