Add transition to margins.