Intersection Observer Visibility Change DEMO

viewport
scroll

viewport
intersection-observer

overflow
scroll

overflow
intersection-observer