Ionic Bond
An ionic bond forms when a metal loses electrons and a nonmetal gains them, so cations and anions stick by electrostatic attraction. Coulomb’s law says attraction grows as distance shrinks, and lattice energy rises with larger charges and smaller ionic radii. Ionic crystals arrange positive and negative ions in a regular lattice: insulators as solids, conductors when molten or in solution. Here you change ion distance to feel the Coulomb force and inspect the NaCl crystal lattice.