Working with animation.
Here I want text come one after the other first paragraph move from left to right and fadeOut and second and so on in a loop. I tried but I didn't get properly. What might be the issue here. Can anyone suggest me?
$(document).ready(function() {
$('#load').each(function() {
$("div.first").slide(300).delay(800).fadeIn(400);
$("div.second").slide(300).delay(1200).fadeIn(400);
$("div.third").slide(300).delay(1600).fadeIn(400);
});
});
#load {
width: 700px;
background-color: #ccc;
margin: 0 auto;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="load">
<div class="first">
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
</div>
<div class="second">
<p>Measure & monitorIt is a long established fact that a reader will be distracted by the readable c projects</p>
</div>
<div class="third">
<p>Intelligence of a page when looking at its layout.</p>
</div>
</div>