Jump to content
Search Community

Update values with scrolltrigger after timeline

Milk0 test
Moderator Tag

Recommended Posts

Hello everyone 
 

I'm having issues on updating a common value between two timelines. The first should make my element appear using a simple timeline and the second one with scrollTrigger should pin the element and make it disappear while scrolling using scrub prop. 
As you can see from my example when i start scrolling, the second timeline doesn't affect my element style. When you scroll out the viewport though the element goes from opacity: 1 to opacity: 0 instantly and never appears again. 

I checked out the documentation for a solution but i can't figure out how to fix that. 

I hope i've been clear enough!

Thanks in advance to everyone that will help. 

 

 

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