clean code in HorizontalCTransition