I made a long SVG animation, the duration is near 90s. I would like to have less code.
tl.set('svg *', { autoAlpha: 0 }); // start
tl.to('#el' ,0, { autoAlpha: 1 } ,"intro"); // show #el
tl.to('#el' ,0, { autoAlpha: 0 } ,"intro+=1"); // hide #el
tl.to('#el' ,0, { autoAlpha: 1 } ,"part1"); // show #el
tl.to('#el' ,0, { autoAlpha: 0 } ,"part1+=1"); // hide #el
If I can write 2 lines in 1.
tl.set('svg *', { autoAlpha: 0 }); // start
tl.showBetween('#el' ,"intro" ,"intro+=1"); // show for 1s #el