Jump to content
Search Community

ScrollTrigger containerAnimation attribute combine with a quickTo() tween

Michaël Garcia test
Moderator Tag

Recommended Posts

Hello GSAP lovers,

I'm using a quickTo() method to create an infinite loop of my container - related to my wheel event. 

Eventually my container is moving horizontally. 

I'd like to scrub an animation on its child depending on the child position.

To do so I created a tween of the child element and I set the containerAnimation attribute but it doesn't seem to works. 

 

Is there a way to combine the containerAnimation with a quickTo() method ?
I'd like to see my.scrub child element become transparent the more it's getting closer to the left edge.

 

Thank you very much for your help!

See the Pen ExJdjjb by johnndoe (@johnndoe) 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...