JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<div class="alert alert-success"> <a href="#" class="close" data-dismiss="alert">&times;</a>
     <h4>Success</h4>
    <br />
    <div>All records were processed correctly!</div>
</div>

<h1>Page Title</h1>

<br />Automatically closes in 5 seconds...

JavaScript

window.setTimeout(function () {
    $(".alert-success").fadeTo(500, 0).slideUp(500, function () {
        $(this).remove();
    });
}, 2000);