Jump to content
Search Community

Nuxt 3 with Gsap Page Transition Example Bug

KhaledOghli test
Moderator Tag

Recommended Posts

Hi,

 

Thanks for reporting. I investigated this and it seems to be related to just Nuxt and the way is handling route navigation itself.

 

If you check the console, you'll see this errors:

[Vue Router warn]: uncaught error during route navigation:   vue-router.mjs:35

Then you get an error when trying to revert the GSAP Context instance:

TypeError: Cannot read properties of undefined (reading 'revert')    vue-router.mjs:3451

This seems unrelated to GSAP and just something happening in Nuxt. The same example in Vue3 with Vue Router works as expected when you insanely click between routes.

 

We'll create a few other examples (using no animations but still using the transition component in Nuxt and using CSS animations as well in order to cover all the scenarios) an escalate this to the Nuxt team, but unfortunately after that the ball won't be on our court so I can't give you any time table for this to be resolved.

 

Until then, since the example we created uses a transition composable, my best advice would be to use that in Nuxt Link components and prevent navigation if the animation between routes is not completed.

 

We'll keep you posted as this progresses, so please stand by.

 

Happy Tweening!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...