What kind of motion is it that an earthquake imposes on a structure?
Mainly it is a horizontal motion of the earth. This causes the base of the building to move horizontally, while the top of the building tends to stay in its original position through inertia. The result is that the building is distorted as the impetus moves progressively toward the top. As the shaking continues the building oscillates in a complex series of movements.