I have a series of functions that pulsate with a certain timing in mind in this fiddle
When you run it, you can see that it goes from top, to middle to bottom. Open another window and try surfing to a different web page for a few seconds while the fiddle is open in another window. When you return to the fiddle, you will see the timing has changed. What is causing this? I cannot for the life of me figure out what is going on.
The code for the pulse can be found here
function fadeItIn() {
window.setInterval(function(){
// Fade Ins
$('#child4,#child4C').fadeIn(175);
setTimeout(function () {
$('#child3,#child3C').fadeIn(175);
}, 175);
setTimeout(function () {
$('#child2,#child2C').fadeIn(175);
}, 350);
setTimeout(function () {
$('#child1,#child1C').fadeIn(175);
}, 525);
setTimeout(function () {
$('#child,#childC').fadeIn(175);
}, 700);
// Fade Outs
setTimeout(function () {
$('#child,#childC').fadeOut(175);
}, 875);
setTimeout(function () {
$('#child1,#child1C').fadeOut(175);
}, 1050);
setTimeout(function () {
$('#child2,#child2C').fadeOut(175);
}, 1225);
setTimeout(function () {
$('#child3,#child3C').fadeOut(175);
}, 1400);
setTimeout(function () {
$('#child4,#child4C').fadeOut(175);
}, 1575);
}, 3000);
};