DEV Community

Discussion on: Applying Styles Based on the User Scroll Position with Smart CSS

Collapse
 
emgodev profile image
Michael

WHY DIDN'T I THINK OF THIS!? This is just like frontend reactive framework one way data flow, update the att, and let CSS handle applying the styles, no need to conditionally add a class at a certain breakpoint!

Collapse
 
rikschennink profile image
Rik Schennink

Haha :D I felt exactly the same when I first set this up, it's a very straightforward and flexible way of solving these kinds of problems :-)