Animation is done differently in 2D/3D based animation, but they have common properties:
Animator creates key frames, and the software interpolates between them
Keyframes hold all information about the state of the animation at that point in time (more detail for 3D)
The creation of intermediate images between keyframes is known as in-betweening (or just tweening)