I would like to ask how is it possible for me to create a animation flow to show an update status, which will be animated through the flow of:
- Form updated successfully
- SlideDown to display the success status message within a div
- Show this message for 5 seconds
- Fade out the message after 5 seconds is up
This is what I have so far…
$("#status").empty().append("successfully updated." );
$('#status').slideDown('fast', function() {
$("#status").show(5000, function() {
$("#status").fadeOut('slow');
});
});
Thank you very much.
Here’s one way:
HTML:
Javascript:
EDIT Modifying the code you just added, you should do it like this:
Hope this helps. Cheers