diff --git a/src/routes/contact/+page.svelte b/src/routes/contact/+page.svelte index 2a381a6..3de8dbd 100644 --- a/src/routes/contact/+page.svelte +++ b/src/routes/contact/+page.svelte @@ -57,6 +57,12 @@ }) }) + let textarea = document.querySelector('textarea') as HTMLElement + + textarea?.addEventListener('focus', () => { + window.scrollTo(0, textarea.offsetTop - 100); + }) + return () => { gsap.killTweensOf('.toCanvas, .lineChildren'); }