IMP - Website Development in Hindi #25: Add Animation on Number on Scrolling

Welcome guys, Today in this video we are going to add animation on number on scrolling.

So for achieving animation on scrolling we will use Intersection observer API.

What is Intersection observer API?

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.

Now, We will use the intersection observer API and then we will fetch the entires.after then we will apply the logic, if it is true then the function will trigger otherwise not.

Reference link for Animated number section video: https://youtu.be/PeeZWyOArtU

Web design
Be the first to comment