$('.back_btn').click(function(){ // ===== From Playlist(3) to Main(2) if($('#curator').css("display") == "none"){ var playlistToMain = new TimelineMax({}); // Hide playlistToMain.fromTo($('#curator'), 0.8, {display: 'none', opacity: 0, scale: 1.1}, {display: 'block', opacity: 1, scale: 1, ease: Power2.easeInOut}, 0) } // From Main(2) to Home(1) else { var mainToHome = new TimelineMax({}); // Hide mainToHome.fromTo($('.curator_title_wrapper'), 0.5, {opacity: 1, x: 0}, {opacity: 0, x: 30, ease: Power2.easeInOut}, 0.2), mainToHome.fromTo($('.curator_list'), 0.5, {opacity: 1, display: 'block', x: 0}, {opacity: 0, x: 30, display: 'none', ease: Power2.easeInOut}, 0.5), mainToHome.to($('.back_btn'), 0.5, {display: 'none', opacity: 0, x: 15, ease: Power2.easeInOut}, 0.5), mainToHome.to($('#curator'), 0, {display: 'none', ease: Power2.easeInOut}, 1), // Background Up mainToHome.to($('.wave-container'), 1, {yPercent: 0, ease: Power2.easeInOut}, 1), // Show mainToHome.to($('.text-wrap'), 0.5, {display: 'flex', opacity: 1, y: 0, ease: Power2.easeInOut}, 1.2), mainToHome.to($('.logo-text, .line'), 0.5, {display: 'block', opacity: 1, y: 0, ease: Power2.easeInOut}, 1.2), // Force to redraw by using y translate mainToHome.fromTo($('.text-wrap .text'), 0.1, {y: 0.1, position: 'absolute'}, {y: 0, position: 'relative', ease: Power2.easeInOut}, 1.3) // $('.text-wrap .text').css('position', 'relative'); } });解释一下