remove Class when not in view

This commit is contained in:
2021-04-19 20:18:02 +02:00
parent aa9e3d6cc5
commit 1d89d1c53a
+3 -1
View File
@@ -130,6 +130,8 @@ jQuery(document).ready(function($){
$('.souligne').each(function () {
if (isScrolledIntoView(this) === true) {
$(this).addClass('in-view')
}
} else {
$(this).removeClass('in-view')
}
});
});