The eggs are not moving inside the carton.
The whole carton is slanted to one side, or to the other side, depending on which end is propped up on the book.
That tips the eggs to one side, and then to the other side, so they get a bit of movement.
If the yolk always tries to go "up" inside the...