Share Posted February 20, 2019 Hi! I'm new to Greensock and I'm trying to get my head around how everything works. I'm trying to change the direction of this codepen example - I've got as far as to change += to –= but I can't work out what I need to change on the modifier so that the boxes loop. Any help is much appreciated. See the Pen QEdpLe by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Share Posted February 20, 2019 Hi @lsloss, have a look here to see "one way" it can be done. I say "one way" because I'm sure there are better methods than my ternary operator ... but I'm not feeling well today and it's all I can think of right now! ? See the Pen OdGbow by sgorneau (@sgorneau) on CodePen Hope this helps! 4 Link to comment Share on other sites More sharing options...
Author Share Posted February 21, 2019 Amazing @Shaun Gorneau, thank you! Feeling unwell or not, it works perfectly and I really appreciate the time to comment what is happening too. Hope you are feeling better! 1 Link to comment Share on other sites More sharing options...
Share Posted February 21, 2019 Happy to help, @lsloss! And thanks ... I am feeling better today! Link to comment Share on other sites More sharing options...
Share Posted February 21, 2019 nothing at all wrong with Shaun's approach. Check out the wrap() function discussed here: 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