+ 1

Why the elements are blinking so fast when isIntersecting is true

https://code.sololearn.com/Wk18YTbVd40R/?ref=app

18th Mar 2023, 8:43 AM
roshan roy
2 Respuestas
+ 4
🐧😊 As it is an interesting topic so I respectfully invite you to share your knowledge about intersections. Hi roshan roy I edited your code, its need to add threshold of one and a root of null value. whenever anything intersecting to page you can add or remove a css class through the target property. I hope it could be helpful for you. https://code.sololearn.com/W74Wt8e65W8i/?ref=app
18th Mar 2023, 10:41 AM
Yasin Rahnaward
Yasin Rahnaward - avatar
+ 2
Why do you tag me on this thread?
18th Mar 2023, 11:36 AM
Lisa
Lisa - avatar