eagertolearn

Intersection Observer API: A Hidden Gem in JavaScript

Intersection Observer API: A Hidden Gem in JavaScript

Recently while exploring the frontend world, I came upon a interesting feature of JavaScript -> Intersection Observer. Intersection Observer API is one of the most underutilized and unheard JavaScript's features. Intro The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.However its sounds complex but it provides a simple solution for the most general problem: knowing when an element becomes visible of invisible to the use. Why It Matters scroll event was the go-to method for developers when it comes to determine…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.