Nickicool Posted December 9, 2020 Share Posted December 9, 2020 It may be simple, but I really can't figure out how to redo the usage example .batch () functions using timelines (instead of simple tweens). And I also need dynamically loaded elements by clicking on the button. I took the Codepen provided by user @ZachSaucier as a basis, but added SPAN to the DIV, for the complexity of the elements .card I wanted to use Timeline features like play() and reverse() to animate more complex objects .card than just an empty box... See the Pen JjRRyzr?editors=0010 by nickicool (@nickicool) on CodePen Link to comment Share on other sites More sharing options...
Solution ZachSaucier Posted December 9, 2020 Solution Share Posted December 9, 2020 Hey Nickicool. To use a timeline you should replace what's in the show function with a timeline affecting each item in the batch that you want to affect in the way that you want to affect it. Something like this: See the Pen wvzzpEO?editors=0010 by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Nickicool Posted December 10, 2020 Author Share Posted December 10, 2020 Yes, it works! Thanks! 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