How to make div refresh fade in and out instead of flicker with updated content?

How can I use jquery to fade in and out a div with updated content everytime the div is refreshed? Ex: Updating stock quotes every second so refresh with fade in and out number every time updated 3 seconds.