change margin transition to padding