ROCHE Posted August 1, 2023 Share Posted August 1, 2023 Hi, Im trying to reproduce this kind of effects https://mtcubacenter.org/about/history/ (heroscreen with dates changing on scroll wheel). Im a beginner with GSAP, can someone give some tips to help me ? Thanks and have a good day, See the Pen KKrbLKq by Gloyrus (@Gloyrus) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted August 1, 2023 Share Posted August 1, 2023 Hi @ROCHE and welcome to the GreenSock forums! Thanks for being a Club GreenSock member and supporting GreenSock! I think the best approach or that particular behaviour is to use the Observer Plugin: https://greensock.com/docs/v3/Plugins/Observer Here is a basic example: See the Pen XWzRraJ by GreenSock (@GreenSock) on CodePen The good thing about it is that you can then disable the Observer instance after you reach the final part of that particular section, like this example: See the Pen oNdNLxL by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 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