How to identify the element currently visible on the screen. I am using "scroll-snap-type"

238 Views Asked by At

thank you for reading!

I'm currently using the 'scroll-snap-type' to implement something like a YouTube short. It's like swiping to switch to the next content.

At that time, I want to detect the content currently displayed on the screen. How can I do that?

thank you.

0

There are 0 best solutions below