check to see if element is visibile or not each time page is interacted witg code example
Example 1: check if element is visible
.is(':visible')
//Selects all elements that are visible.
if($('#Div').is(':visible')){
// add whatever code you want to run here.
}
$('#yourDiv:visible').callYourFunction();
Example 2: jquery check if all elements hidden
if($('#list-team-single-container').children(':visible').length == 0) {
// action when all are hidden
}