Sudden gravitational transition