css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
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.
user profile image

A simple example of the IntersectionObserver API. The "target" being observed is a "sentinel" element near the bottom on the list. When the sentinel becomes visible, a callback is fired. In this example, the callback just changes the header text, but you could use it to load more items for an infinite scroll effect or whatever else you want. For more info: https://bendyworks.com/blog/introducing-intersection-observer


  1. No comments yet.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.