Fade unique element

Fade unique element

Hello,

I have a grid of images, each contained in a div, along with an h3.
When hovering over the div, I want the h3 to fade in for the specific div, and fade out when the mouse leaves.
Currently, I have this code:

  1. $(document).ready(function()
  2. {
  3. var hover = ".thumbnail";
  4. var elements = ".thumbnail h3";
  5. $(elements).css("display", "none");

  6. $(hover).mouseover(function()
  7. {
  8. $(elements).stop(true, true).fadeIn(800, function() {});
  9. });
  10. $(hover).mouseout(function()
  11. {
  12. $(elements).stop(true, true).fadeOut(400, function() {});
  13. });
  14. });

Thanks in advance for your help!