remove Class when not in view
This commit is contained in:
@@ -130,6 +130,8 @@ jQuery(document).ready(function($){
|
|||||||
$('.souligne').each(function () {
|
$('.souligne').each(function () {
|
||||||
if (isScrolledIntoView(this) === true) {
|
if (isScrolledIntoView(this) === true) {
|
||||||
$(this).addClass('in-view')
|
$(this).addClass('in-view')
|
||||||
}
|
} else {
|
||||||
|
$(this).removeClass('in-view')
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user