Browse Source

remove Class when not in view

ouidade 3 years ago
parent
commit
1d89d1c53a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      user/themes/epau-antimatter/js/antimatter.js

+ 3 - 1
user/themes/epau-antimatter/js/antimatter.js

@@ -130,6 +130,8 @@ jQuery(document).ready(function($){
       $('.souligne').each(function () {
         if (isScrolledIntoView(this) === true) {
             $(this).addClass('in-view')
-            }
+            } else {
+              $(this).removeClass('in-view')
+              }
       });
     });