Posts, a community app by Read.cv

Thread
Dexter Marks-Barber
Replying to @michael_andreuzza

You’re using onscroll here. Have you thought about using the intersection API? I think it may result in less code and use of modern APIs

Michael Andreuzza
Replying to @dexter

no, I haven't tried still with that. Still learning js :-)Thank you for the tip Dexter.

Dexter Marks-Barber
Replying to @michael_andreuzza

This’ll help css-tricks.com/how-to-detect-…

How to Detect When a Sticky Element Gets Pinned | CSS-Tricks
Totally agree with David, on CSS needing a selector to know if a position: sticky; element is doing its sticky thing or not.
Michael Andreuzza
Replying to @dexter

Thank you Dexter, very kind :-)