The harm may occur just before the neck jerks back and forward.
You're waiting at a stoplight when it changes from red to green. You hesitate and then, out of the blue, crunch! — you feel the impact of a car colliding with yours from behind. Your head jerks back, and then snaps forward. It's whiplash.