diff --git a/js/main.js b/js/main.js index 84791e9..c586d5e 100644 --- a/js/main.js +++ b/js/main.js @@ -318,14 +318,17 @@ document.addEventListener('DOMContentLoaded', () => { // ── 17. CONTACT SECTION ANIMATION ────────────────────────────────── const contactSection = document.getElementById('contact'); if (contactSection) { - gsap.from(contactSection.querySelectorAll('.social-link'), { - scrollTrigger: { trigger: contactSection, start: 'top 70%' }, - scale: 0, - opacity: 0, - duration: 0.6, - stagger: 0.1, - ease: 'back.out(1.7)', - }); + gsap.fromTo(contactSection.querySelectorAll('.social-link'), + { scale: 0, opacity: 0 }, + { + scrollTrigger: { trigger: contactSection, start: 'top 90%', toggleActions: 'play none none none' }, + scale: 1, + opacity: 1, + duration: 0.6, + stagger: 0.1, + ease: 'back.out(1.7)', + } + ); } });