Jump to content
Search Community

Scrolltrigger.batch sometimes doesn't trigger an animation in Nuxt.js

Packo test
Moderator Tag

Recommended Posts

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

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