I want to achieve the effect of magnification and disappearance.
alpha setting transparency from 1 to 0 works
but no matter how scale is set, it doesn"t work. I don"t know what went wrong. Ask God for help
function initAnimation(){
// delay=0.1 10%
// duration=0.1
console.log(bg.bg1.scale);
let act1_1 = TweenMax.to(bg.mother,0.3,{x:1120}),
act1_2 = TweenMax.to(bg.bg1,0.1,{alpha:0}),
act1_3 = TweenMax.to(bg.bg1.scale,0.1,{x:2,y:2}), //
act2 = TweenMax.to(sprites.mother_left,2,{rotation:-1}),
act3 = TweenMax.to(sprites.mother_right,2,{rotation:1});
let tm1 = new TimelineMax({delay:0.01}),
tm2 = new TimelineMax({delay:0.01});
tm1.add(act1_1);
tm2.add(act1_2)
.add(act1_3)
.add(act2)
.add(act3);
timeline.add(tm1)
.add(tm2);
}