
joe.cardella
-
Posts
6 -
Joined
-
Last visited
Community Answers
-
joe.cardella's post in Is it possible to reverse nested timelines using TimelineMax? was marked as the answer
The problem is with my code and not with GSAP. I have new timelines created on every click. How will it reverse something that it doesn't have a previous reference to?
The solution would be to create the timelines outside of the click event and then based on the state, get that instance of the timeline and play forward or reverse the animation.