Share Posted October 26, 2022 Hi.Could anyone help me to add animation to horizontal text block I'm trying to do? Like here: https://locomotive.ca/en Latest award section (third section on homepage). So the text is scrolling slowly, depends we scrolled down it go right->left, up it start scrolling left->right. I have done that, but I would like to have like the example above, so it scroll looped (slowly) all the time, and speeds up when user scrolls. Thank you for the help! Thanks, Lukas. See the Pen XWYJgPg by lukasz-gorski (@lukasz-gorski) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted October 26, 2022 Hi @rOghz and welcome to the GreenSock forums! For the horizontal endless marquee you can use the Horizontal Endless Loop helper function crafted by @GreenSock: https://greensock.com/docs/v3/HelperFunctions#loop In order to speed up/down and switch directions you could use the Observer Plugin in order to check the scrolling direction and tween the timescale property of the timeline returned by the helper function. Here is a live example: See the Pen zYaxEKV by GreenSock (@GreenSock) on CodePen Let us know if you have more questions. Happy Tweening! Link to comment Share on other sites More sharing options...
Author Share Posted October 28, 2022 Hi Rodrigo. Thank you very much for your help, I will try adapt that into my projects All best! 1 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