From 910fd9f39a5fff6013728c9fe4e7f8aedcd143d7 Mon Sep 17 00:00:00 2001 From: radishzzz Date: Mon, 19 May 2025 15:00:30 +0100 Subject: [PATCH] chore: update gsap animation config --- src/components/Widgets/GsapAnimation.astro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Widgets/GsapAnimation.astro b/src/components/Widgets/GsapAnimation.astro index b53ec60..16c907b 100644 --- a/src/components/Widgets/GsapAnimation.astro +++ b/src/components/Widgets/GsapAnimation.astro @@ -90,8 +90,8 @@ function setupPostPageAnimation() { } else { // Post Content + Tags + Comments - // First 5 elements - gsap.from(allElements.slice(0, 5), { + // First 7 elements + gsap.from(allElements.slice(0, 7), { opacity: 0, y: '3rem', duration: 0.5, @@ -99,8 +99,8 @@ function setupPostPageAnimation() { ease: 'power2.out', stagger: 0.05, }) - // Rest elements as the 6 element - // if (allElements.length > 5) { + // Rest elements as the 8 element + // if (allElements.length > 7) { // gsap.from(allElements.slice(7), { // opacity: 0, // y: '3rem',