Add css transition on page change