Moved major part of fadeIn/fadeOut logic to Transition class.