fix: instagram button too small
This commit is contained in:
parent
7fb6d9e9c6
commit
1c279ddc3d
1 changed files with 11 additions and 8 deletions
19
js/main.js
19
js/main.js
|
|
@ -318,14 +318,17 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
// ── 17. CONTACT SECTION ANIMATION ──────────────────────────────────
|
// ── 17. CONTACT SECTION ANIMATION ──────────────────────────────────
|
||||||
const contactSection = document.getElementById('contact');
|
const contactSection = document.getElementById('contact');
|
||||||
if (contactSection) {
|
if (contactSection) {
|
||||||
gsap.from(contactSection.querySelectorAll('.social-link'), {
|
gsap.fromTo(contactSection.querySelectorAll('.social-link'),
|
||||||
scrollTrigger: { trigger: contactSection, start: 'top 70%' },
|
{ scale: 0, opacity: 0 },
|
||||||
scale: 0,
|
{
|
||||||
opacity: 0,
|
scrollTrigger: { trigger: contactSection, start: 'top 90%', toggleActions: 'play none none none' },
|
||||||
duration: 0.6,
|
scale: 1,
|
||||||
stagger: 0.1,
|
opacity: 1,
|
||||||
ease: 'back.out(1.7)',
|
duration: 0.6,
|
||||||
});
|
stagger: 0.1,
|
||||||
|
ease: 'back.out(1.7)',
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue