CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
An example of the IntersectionObserver API that uses a parent element instead of the browser viewport. The "target" being observed is Slide 2. When this slide becomes visible or invisible, a callback is fired.