Why do some matter expand while others contract when they change their state from solid to liquid and vice versa?
For example, ice, brass, bismuth, antimony etc. expand when they turn from liquid to solid(solidification) and contract or shrink when turn from solid to liquid(fusion)
On the other hand, paraffin wax, nickel etc. shrink during solidification and expand during fusion.
What does this change in volume depend on? (And I also read that, most matters are of the second kind, meaning they shrink during solidification and expand during fusion. Why are most matter like this?)