From 1c279ddc3d5211fe2311c802efae3c8d94c73d74 Mon Sep 17 00:00:00 2001 From: Plexi09 Date: Mon, 23 Feb 2026 00:47:15 +0100 Subject: [PATCH] fix: instagram button too small --- js/main.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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)', + } + ); } });