Adhoc Systems

Zachary Dunn's avatar.

Zachary Dunn

@zack:mozilla.org

Bookmarked: Building A Dynamic Header With Intersection Observer — Smashing Magazine

In JavaScript, attaching an event listener to constantly fire a callback on scroll can be performance-intensive. But there is a better way with Intersection Observer.

https://www.smashingmagazine.com/2021/07/dynamic-header-intersection-observer/#top

webdev

Comments

There aren't any comments on this post yet.

Back To Top