re: Using Smart CSS to Time Your Wonderful Newsletter Popup VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks, Andrew! While IntersectionObserver is a super nice API, it's not really in line with the purpose behind the article, which is doing this b...
 

The two approaches seem compatible to me! If the intersection observer updated the body class with a data-last-landmark attribute, instead of a raw %, you could still reference off of that with CSS.

Interesting approach! That would certainly work I think.

code of conduct - report abuse