Jump to content
Search Community

Help Triggering Animation In Scrolltrigger

BearsFan11 test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi, beginner here trying some ScrollTrigger, and I am having trouble figuring out how to trigger a seperate animation at a certain point.
The desired effect here is to move the third slide just like the 2nd slide, with the X values of the item and it's inner wrapper set to be inverses.  

 

However, for the third slide, I can't seem to figure out how to tell it to only start the inner div animation until the second one completes.  I know this may not make sense, but I basically want the effect of slide 1 to slide 2 (the wipe effect?), repeated for slide 2 to slide 3.

Can anyone possibly steer me in the right direction, show me an example possibly?  Thanks!

AC

See the Pen eYMLorV by BearsFan11AC (@BearsFan11AC) on CodePen

Link to comment
Share on other sites

  • Solution

It looks like you have various problems with your CSS like your slides aren't positioned on top of each other. And your ScrollTrigger/animation code looked problematic too, like loops where you didn't need to do them and also places where you should loop and didn't. I assume you were looking for something more like this?: 

See the Pen MWVPbyG?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Does that help?

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