スライダー上にテキストアニメーションのループを作成しようとしています...ループを試しましたが、うまくいきません..このスクリプトを永遠にループさせる方法を教えてください..ありがとう
<script>
$(document).ready(function() {
$("#header").hide();
var headerOne='I';
var headerTwo='Am';
var headerThree='So';
var headerFour='Cool';
$("#header").html(headerOne);
$("#header").fadeIn(1000);
$('#header').delay(1000).fadeOut(1000,function(){
$(this).html(headerTwo).fadeIn(1000);
$('#header').delay(1000).fadeOut(1000,function(){
$(this).html(headerThree).fadeIn(1000);
$('#header').delay(1000).fadeOut(1000,function(){
$(this).html(headerFour).fadeIn(1000).delay(1000).fadeOut(1000);
});
});
});
});
</script>
ありがとう!