Earth's rigid outer shell is broken into plates that slowly slide over a hot, slowly-flowing mantle. Where plates meet, they pull apart, crash together, or grind past one another β building ocean ridges, deep trenches, volcanoes, mountains and earthquakes. The three animations below show the boundary types, the heat engine that drives them, and how the continents have drifted over hundreds of millions of years.
Pick a boundary and watch the plates move. Divergent: plates pull apart and magma rises to make new crust. Convergent: a dense oceanic plate dives (subducts) beneath another, carving a trench and feeding a volcanic arc. Transform: plates slide past each other, storing stress that snaps loose as earthquakes.
Heat from Earth's interior makes hot mantle rock rise; near the surface it cools, spreads sideways, and sinks again β slow, churning convection cells. The rigid plates riding on top are carried along by that flow (helped by the pull of cold, sinking slabs). Speed it up or slow it down to see the circulation drag the plates.
Around 250 million years ago the continents were joined in one supercontinent, Pangaea. Plate motion since then has rifted it apart and scattered the landmasses toward their present positions. Drag the slider through deep time (this is a schematic β not exact coastlines).