Milk0 Posted March 17, 2022 Share Posted March 17, 2022 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 More sharing options...
OSUblake Posted March 17, 2022 Share Posted March 17, 2022 Welcome to the forums @Milk0 It sounds like you might running in the same issue here. 1 Link to comment Share on other sites More sharing options...
Milk0 Posted March 19, 2022 Author Share Posted March 19, 2022 Thank you for the smart solution @OSUblake. ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now