5.6 How do sedimentary rocks reveal ancient environments?

The transition from one type of rock layer to another denotes that some sort of environmental change occurred over time, as we know these rocks form under somewhat different conditions of sedimentation.
But do the rocks tell us how it changed?
Fig 5.18