Delay intro text 3 seconds and show with 2 seconds fade


$quiz.on('init',()=>{	
	 $chat.on('new-line',onNewLine);
});
    
$quiz.on('destroy',()=>{
	 $chat.off('new-line',onNewLine);
});

function onNewLine(e){		
	if(e.find('.quiz-intro-text').length){
		if($quiz.rep.state=='playing') return; // player joined after intro
		e.detach();
		e.css('opacity','0');
		$timeout(t=>{
			$('chat').append(e);
			$chat.scrollToBottom();
			TweenMax.to(e[0],2,{opacity:1});
		},3*1000);
	}	
}