Intersection-observer Intersection Observer API is used to verify the section in the scroll entering the viewport and change its class