The thermodynamics of a new type of surface transition