Packo Posted November 3, 2021 Share Posted November 3, 2021 Hey, I have this problem, that the scrolltrigger doesn't initiate the animation when I change the routes in the Nuxt.js. When I check the console, I see that the animation initiated without me getting into the viewport. However, when I reroute again, the animation starts properly. This mostly doesn't work on 1 particular page for some reason. If I have less images, the animation starts mostly without a problem. I have this RevealFromBottom component that acts as a wrapper for whatever I put inside, mostly images and videos. I used the Scrolltrigger.batch because I have lot of images I need to initiate the animation on. I can't provide complete code, but later on I'll provide website so you can see what I mean. See the Pen BadJpGG by spreceriany (@spreceriany) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted November 3, 2021 Share Posted November 3, 2021 Hi Packo, It's really hard to make sense of scrolling code without a demo. It would really help out if you could fork this template and recreate the issue in it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now