Jump to content
Search Community

ScrollTrigger and Nuxt Pages Issue

pcreative test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

First of all, Congrats for this amazing library GreenShock.

 

I've been reading on the forum first, trying to solve my problem but I couldn't solve it yet.

 

My problem is: .pin-spacer remains on nuxt link to another page and I get a padding on the bottom. If y kill() my scrollTrigger in the beforeDestroy() hook, my nuxt page appears white, it seems to delete all what .pin-spacer had inside.

 

I made a codesandbox for you to see: https://codesandbox.io/s/gsap-pages-problem-pghld?file=/pages/index.vue

 

Edit: I tried both nuxt-gsap-module and manually import gsap and scrollTrigger with transpile option.

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...