There are 3 images in home page which are hidden. so what I'm trying is i want to show 3 images on there positions but with some delay.
Ex image 1 fadein with 1500 and fade out with 1000. when image 1 is fading out image 2 is fadein.
Questions
- show 3 images with some delay
- and after 3 images do there preview, aging loop should start with image 1.(Continuously want run)
HTML
<div class="slides">
<div class="set1" id="1">
<img src="image/slider/Image.png" width="950px">
</div>
<div class="set2" id="2">
<img src="image/slider/Image.png" width="950px" >
</div>
<div class="set3" id="3">
<img src="image/slider/Image.png" width="950px">
</div>
</div>
JavaScript
<script type="text/javascript">
$(function()
{
var i;
for (i = 1; i < 4; i++)
{
$('#'+ i).fadeIn('4000', function () {
$(this).delay(4000).fadeOut('4000');
});
}
});
</script>
Css
.set1
{
bottom: 0px;
left: 0px;
position: absolute;
float: left;
width: 100%;
display: none;
}
.set2
{
bottom: 0px;
left: 150px;
position: absolute;
float: left;
width: 100%;
display: none;
}
.set3
{
bottom: 0px;
left: 250px;
position: absolute;
float: left;
width: 100%;
display: none;
}