I'm wanting to be able to destroy a timeline (based on resizing). When i destroy the timeline, i want to remove all of it's initial set-up CSS.
Here is how a timeline is set-up:
var scene = new TimelineLite();
scene
.add("start", 0);
scene
.from(panel, 20, {
opacity: 0
}, "start")
.from(panelText, 20, {
y: "+=60px"
}, "start")
.from(background, 20, {
scale: "1.15"
}, "start")
With this, the panel is set to Opacity 0 initially.
I have timelines within timelines as each panel (17 of them) animate in various combinations.
I don't want the timeline active on mobile so i can disable it, but is there a method like clearProps for removing all CSS generated by all the timelines? Or must this be done outside of GSAP?
The codepen attached (i got from the closest post i could find relating to this issue) demonstrates it resetting to the start, but the elements still have their CSS properties.