replacing top with transform in transition