chore: update gsap animation config

This commit is contained in:
radishzzz 2025-05-19 15:00:30 +01:00
parent 4d247cfb93
commit 910fd9f39a

View file

@ -90,8 +90,8 @@ function setupPostPageAnimation() {
} }
else { else {
// Post Content + Tags + Comments // Post Content + Tags + Comments
// First 5 elements // First 7 elements
gsap.from(allElements.slice(0, 5), { gsap.from(allElements.slice(0, 7), {
opacity: 0, opacity: 0,
y: '3rem', y: '3rem',
duration: 0.5, duration: 0.5,
@ -99,8 +99,8 @@ function setupPostPageAnimation() {
ease: 'power2.out', ease: 'power2.out',
stagger: 0.05, stagger: 0.05,
}) })
// Rest elements as the 6 element // Rest elements as the 8 element
// if (allElements.length > 5) { // if (allElements.length > 7) {
// gsap.from(allElements.slice(7), { // gsap.from(allElements.slice(7), {
// opacity: 0, // opacity: 0,
// y: '3rem', // y: '3rem',