Galanthus Posted August 2, 2022 Share Posted August 2, 2022 I have a text ticker which is by default going to the left, but I need 2 rows and tracks the first one should go to the right and second to the left. However, when set to left there is a huge GAP difference in comparison if I set it to the right side. 1st row should go to the left and 2nd row should go to the right. Want to archive something like on this page: https://www.emma-at-work.nl/organisaties/ See the Pen VwXQWom by Merdzanovich (@Merdzanovich) on CodePen Link to comment Share on other sites More sharing options...
iDad5 Posted August 2, 2022 Share Posted August 2, 2022 Well. the easiest way would probably be to write two animation functions and apply them to the first and the second ticker. You can of course parametrize the function, but if you have just tose two, I would pragmatically copy it and adjust it, gives you mor flexibility. Link to comment Share on other sites More sharing options...
Galanthus Posted August 2, 2022 Author Share Posted August 2, 2022 Just now, iDad5 said: Well. the easiest way would probably be to write two animation functions and apply them to the first and the second ticker. You can of course parametrize the function, but if you have just tose two, I would pragmatically copy it and adjust it, gives you mor flexibility. So, instead of using the X -totalDistance use a css animation instead with 2 seperate tickers? Link to comment Share on other sites More sharing options...
iDad5 Posted August 2, 2022 Share Posted August 2, 2022 You could / should use it on the second ticker to, just set it (using gsap.set()) to the right az the beginning and animate to totalDistance instead of to: -totalDistance (Thats just a quick glance, not a tried and tested answer...) 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