Several way to do this.

One example:

  • 3 vertically stacked groups of assorted colors for illustration purposes.
  • Use each of their Y values with their current page scrolling position condition to set further styling or something else to continue further with logic building…