I have done it like this:
function Script1()
{
// button 1
let item = $('[aria-label="speak"] svg')
tween = new TimelineMax();
tween.fromTo(item, 1, {scale: 1, ease:Elastic.easeOut, repeat:-1}, {scale: 1.1, ease:Elastic.easeOut,repeat:-1}, {scale: 1.1, ease:Elastic.easeOut,repeat:-1});
}
function Script2()
{
// button 2
tween.reverse(0.4);
}
And I can't use GSAP 3: because it has different and unexpected behavior for one one my animations... maybe a bug or something ...