<p>I am trying to have an element fade in, then in 5000 ms fade back out again. I know I can do something like:</p>

<pre><code>setTimeout(function () { $(".notice").fadeOut(); }, 5000);
</code></pre>

<p>But that will only control the fade out, would I add the above on the callback?</p>

I just figured it out below:
```
```
$(".notice")
   .fadeIn( function() 
   {
      setTimeout( function()
      {
         $(".notice").fadeOut("fast");
      }, 2000);
   });
```
```
I will keep the post for other users!