Answer :

Heat is just vibrations of the atoms of that substance. So when you heat up a substance, it's atoms vibrate faster and more energetically. As they vibrate, the atoms bump and jostle each other, which pushes each apart from the others, causing the entire substance to expand slightly. Cooling a substance makes the atoms 'lazy', less energetic, and they dont bump each other as much. This allows them to pack more tightly together, thus the substance shrinks.
when heat is released from substance than it contracts.
fOR EXAMPLE:sponge 

Other Questions