Untitled
unknown
javascript
2 years ago
481 B
9
Indexable
function test() { //note指音符图片的sprite console.log(note) note.visible=true let tl=gsap.timeline() let x=note.x let y=note.y while(note.scale.x<=0.3){ note.scale.set(note.scale.x+0.001) } tl.add('start').to(note,{x:x-50,duration:1.2},0) tl.to(note,{y:y+5,angle:-8,duration:0.3},0).to(note,{y:y,angle:0,duration:0.3},0.3) .to(note,{y:y+5,angle:-8,duration:0.4},0.6).to(note,{y:y,angle:0,duration:0.4},1.0).then(()=>{note.visible=false}) }
Editor is loading...