I want to add a timeline animation to an accordion open click and am relatively happy this Pen works fine. However I can't help but feel how I determine the accordion is opening or closing is hacky. Also I feel I should using this:
var accordion_tl = gsap.timeline({paused:true});
And then this where my current timeline is:
gsap.timeline().add(accordion_tl.play());
But anything I try doesn't work as I want. The current code does exactly what I want but curious to kn