Jump to content
Search Community

ScrollTriggers not working directly inside timeline

AsKadir test
Moderator Tag

Go to solution Solved by AsKadir,

Recommended Posts

Hey!

I have a problem with ScrollTrigger,

I have a container with images and I want horizontal scroll for them and some additional animations,

So I took working code and tried to take ScrollTrigger and put it directly inside timeline,

but can't understand why it's not working.

 

As you can see in commented area is working code.

 

Can you help me, please?

 

See the Pen dypBQyR by ChicagoJostik (@ChicagoJostik) on CodePen

Link to comment
Share on other sites

  • Solution
1 hour ago, ZachSaucier said:

You're making one of the most common ScrollTrigger mistakes: including ScrollTriggers on tweens within timelines. Doing so doesn't make much sense.

@ZachSaucier Hi, Zach!

I read it before and now I read it about 30 times.

After it I found that I didn't write pin: true and that was issue.

 

 

 

 

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