I want to excecute an action on display or visibility change (really in display:block or visibility:visible) with jquery if posible or javascript, but I've researched a lot in this forum and I couldn't acomodate any of the suggested solutions for similar problems.
The more near that I've been was:
if($('.class').css('display') == 'none'){ // do something }
But obviously this is only an if, and doesn't catch the event and nothing...
Someone could please help me? Thanks