Sorry, but this effect is due to a number of forces such as Van der Waals force, Ionic strength, and other things going on when you mix two chemicals, one being liquid and the other a liquid or solid.
If attraction increases, density goes up and volume goes down. It is often a toss up whether temperature goes up or down. For example, Sodium Chloride added to water increases temp very very slightly, but Ammonium Chloride decreases temp. rather profoundly. Density usually goes down with Ammonium salts but stays close to the same or goes up with Sodium salts.
And that is just a rough generalization!
PE