Add classes to sections when the section is visible in the viewport