Is there a way to add a class when it’s in the viewport (as in the example), but then remove the class when it’s not anymore? Thanks!