click to centre working with transitions