Skip to content

Conversation

gluharry
Copy link
Contributor

@gluharry gluharry commented Jul 7, 2025

Hey Lukas,

In my current project (and most others) I frequently have to refresh ScrollTrigger from time to time and mostly when navigating to other pages.

My current use case is that my Footer component exists in the layout and does not 'change' on page navigations, so its reveal animations are not displayed properly on pages with different heights.

If I do ScrollTrigger.refresh() on slug nav they get nicely refreshed. However if I import via 'gsap/ScrollTrigger' it doesnt work as it is not the same instance.

For this reason I create a composable that exposes v-gsap-nuxt's ScrollTrigger and all is good.

While I was at it, I exposed globalTimelines if they might be needed, but have no use case for now.

Final thought - my prettier was formatting your files wrong, so I added some stuff in .vscode/settings.json - let me know if they are okay or I need to remove em.

Cheers

Copy link

vercel bot commented Jul 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v-gsap-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2025 2:48pm

@gluharry
Copy link
Contributor Author

Hey, had you had a chance to give this a look?

@gluharry
Copy link
Contributor Author

Hey @holux-design, sorry to bother, will you have some time to look at this soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant