Detect if you are in a certain section (WORDPRESS) elementor

  css, elementor, javascript, wordpress

I am using elementor free version on wordpress and I am having trouble using the motion effect because some of my section is not properly working like for example:

1st section

2nd section

When I am on the 2nd section the motion effect of the 1st section will activate and that’s not what I want . It’s like the viewport of my site is broken . So I’ve come up to an idea that I’ll just use a manual css effect.

So as of my question , can someone help me detect the section/widget so that when I scroll down i’ll just add the effect manually . Thank you . Please tell me if I am not clear . Thank you .

Source: Ask Javascript Questions