Edit in JSFiddle

function lancer() {
	TweenMax.to('rect', 2, { rotation: 90,  ease: Power2. easeInOut })
}