What you are looking at
Each structure is a small block cut from a crystal that, in real life, would carry on in every direction for billions of particles. Drag the stage to turn it, or press Front, Side and Top. Colours follow the usual chemistry convention, and the legend names every particle. Bond lengths and spacings are to scale (picometres, where 1 pm is a millionth of a millionth of a metre). Sizes and movement are partly modelled, and each block says how.
Giant ionic lattices
Sodium chloride is a three-dimensional grid of Na⁺ and Cl⁻ ions, alternating along every row. Highlight one ion and count its nearest neighbours: there are 6, all of opposite charge, 282 pm away. Strong electrostatic attraction acts between every pair of oppositely charged ions, in all directions, so a lot of energy is needed to separate them. That is why the salt melts at 801 °C.
A small block may hold one ion more of one kind, because of its edges, but a whole crystal has equal numbers, so the formula is NaCl. The solid does not conduct because its ions can only vibrate on the spot. Press Molten and apply a p.d.: now the ions wander freely, positive ions drifting one way and negative ions the other. Dissolving the salt in water frees the ions in the same way.
Giant covalent structures
In diamond each carbon atom shares electron pairs with 4 others, arranged as a tetrahedron, and the network runs through the whole crystal. Very many strong bonds must break to destroy it, so diamond is extremely hard and has a very high melting point. No electrons are left over, so it does not conduct.
Graphite is also pure carbon, but each atom bonds to only 3 others, forming flat sheets of hexagons. The fourth outer electron from each atom is delocalised and moves along its layer, so graphite conducts. Only weak forces hold the layers 335 pm apart. Press Slide layers to see why graphite is soft and slippery, useful in pencils and as a lubricant.
Silicon dioxide (silica) is another giant covalent structure: every silicon atom bonds to 4 oxygen atoms and every oxygen to 2 silicon atoms. Like diamond, it is hard, melts only at a very high temperature and does not conduct.
Metals
A metal is a lattice of positive ions in a sea of delocalised electrons. In magnesium, each atom gives 2 outer electrons to the sea and becomes Mg²⁺. The attraction between the ions and the electrons is the metallic bond. Apply a p.d. and the electrons, still darting about at random, drift towards the positive side: that drift is the current. Because the bonding is not fixed between particular atoms, layers of ions can slide without breaking it, so metals bend instead of shattering.
Common mistakes
To compare these giant structures with small molecules, which usually melt at low temperatures because only weak forces hold the molecules together, try the covalent molecules in 3D simulation. How particles behave as a substance melts is in the particle model of matter simulation.