Author Share Posted December 16, 2019 3 minutes ago, ZachSaucier said: Hey Andy, Not sure what you're trying to do. You have two functions that are named the same thing so one is going to override the other. Your if statement is also checking if the element exists, not if the elementIsClicked variable is true or not. Are you trying to do something like this? Sorry that duplicate function was an oversight I essentially want the click functionality to happen when the link is clicked (which is fine and works), but other stuff to be active the whole time the button is not being clicked (in this case the scrollmagic stuff). Does that make sense? Link to comment Share on other sites More sharing options...
Share Posted December 16, 2019 Again, I think that you need to handle that by checking a variable within your ScrollMagic listener like I suggested before. Unfortunately we don't have the capacity to answer every question not related to GSAP. So you may not get more responses from other members of this forum. 1 Link to comment Share on other sites More sharing options...
Author Share Posted December 17, 2019 I appreciate all the help so far! Thank you! Link to comment Share on other sites More sharing options...
Share Posted December 17, 2019 Hey @andystent, Combining ScrollMagic with other scroll processes is not conflict-free - my opinion. You can remove the SM-scenes and add again (see uncommented lines). But it remains a little 'SM'! See the Pen rNaWvog by mikeK (@mikeK) on CodePen Just tween it using GreenSock. Mikel 3 Link to comment Share on other sites More sharing options...
Share Posted December 17, 2019 My interpretation of smooth transition See the Pen gObLQry by mikeK (@mikeK) on CodePen Happy tweening ... Mikel 3 Link to comment Share on other sites More sharing options...
Author Share Posted December 17, 2019 Thank you Mikel! I think I can work with this to get the effect I'm needing. Appreciate the help! 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