How do authors do this?

You will need a overlay and you will need it to shift in time.