I want to use this script to run a command every second when an element is visible until it disappears. https://github.com/morr/jquery.appear
However, I'm missing a manual and the example doesn't help me either.
From the page:
$('someselector').appear(); // It supports optinal hash with "force_process" and "interval" keys. Check source code for details.
I think this would be the right code fragment for this?
My goal is to replace the source of an element as soon as its ID becomes visible.
$.get( 'https://localhost/LightRoom1.php', function( data ) { $('#LightRoom1').prop( 'src', data ); } );
This should be done every second when #LightRoom1 becomes visible and stop when it is not visible.
There are multiple elements beginning with #Light*. So the id has to be passed into the path and the id selector as well.
Any help or advice is appreciated, Thank you in advance.