Update: Demo 2
function setIntervalAndExecute(fn, t) {
fn();
return (setInterval(fn, t));
}
$(document).ready(function () {
setIntervalAndExecute(function () {
var $this = $('#animation-text img');
$this.css({'opacity': 0});
$this.each(function (i) {
$(this).delay((i++) * 500).fadeTo(70, 1);
});
}, 3000);
});
Demo
. . ( ), type 0. type - opacity. .
function setIntervalAndExecute(fn, t) {
fn();
return (setInterval(fn, t));
}
$(document).ready(function () {
var type = 1;
setIntervalAndExecute(function () {
$('#animation-text img').each(function (i) {
$(this).delay((i++) * 500).fadeTo(70, type);
});
type = (type + 1) % 2;
}, 3000);
});