I have a div that is shown / hidden through CSS media queries.
I want to trigger a JQuery call when this div becomes visible - triggering once if the div changes from
display: none;
to
display: block;
Is this possible to do?
Something like the onclick call, but on the div property changing to visible?
$(document).on('click', '#mydiv', function() {
}