How can I add Class to some element not at once? I am looking for a way to add the class to the element with some delay(one by one) instead of applying the class to all at once.
$("button").click(function(){
$("p").each(function(){
$(this).addClass('blue');
});
});
.blue {
color: blue;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button>Add</button>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>
<p>App </p>