diff --git a/components/top-nav.vue b/components/top-nav.vue index bc93ed1..5e71178 100644 --- a/components/top-nav.vue +++ b/components/top-nav.vue @@ -19,14 +19,9 @@ const motionInstance = useMotion(target, { const throttledApply = useThrottleFn((state: string) => { return motionInstance.apply(state); -}, 300); +}, 500); watchEffect(() => { - if (arrivedState.top) { - motionInstance.apply("initial"); - return; - } - if (directions.top) { throttledApply("initial"); return; @@ -44,18 +39,23 @@ watchEffect(() => { ref="target" class="border-b border-b-gray-200 dark:border-none dark:border-b-slate-600 top-0 bg-white z-10 dark:bg-slate-800 bg-opacity-85 dark:bg-opacity-90 backdrop-blur-sm sticky" > - + -
Marios Antonoudiou
+
+ Marios Antonoudiou +
{ >Home +