JoePham Posted November 18, 2022 Share Posted November 18, 2022 Hi guys, im working on a project but have some problem with the "Pin" function its seem cannot pin while user scroll through the Pin function is only work when user scroll up ?? how can i fix it ? See the Pen dyKZNrM by phm-thanh-li-m-the-animator (@phm-thanh-li-m-the-animator) on CodePen Link to comment Share on other sites More sharing options...
Trapti Posted November 18, 2022 Share Posted November 18, 2022 Hi, You are using some other library to control scroll animation. It will be difficult for us to help with that. I suggest - Convert the animation code to use GSAP 3 new version you are currently using TweenMax. - To trigger this animation on scroll use scrollTrigger. And if you face issues will be able to help. 2 Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted November 18, 2022 Solution Share Posted November 18, 2022 It seems like you're using https://github.com/johnpolacek/superscrollorama a plugin that hasn't been updated over 7 years (the plugin page also states that it is deprecated). This is certainly not something we can help with. That said and like @Trapti suggested GSAP has its own plugin that allows for animations on scroll, called ScrollTrigger. This is fully supported by GSAP and is a breeze to use, take a look at the docs and be sure to watch the video if you want to see what is possible. Hope it helps and happy tweening! 3 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