Does the temperature change during of after the state of matter changes? Explain your answer.

(thanks for the answer in advance!) <3