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:
- $(document).ready(function()
- {
- var hover = ".thumbnail";
- var elements = ".thumbnail h3";
-
- $(elements).css("display", "none");
- $(hover).mouseover(function()
- {
- $(elements).stop(true, true).fadeIn(800, function() {});
- });
-
- $(hover).mouseout(function()
- {
- $(elements).stop(true, true).fadeOut(400, function() {});
- });
- });
Thanks in advance for your help!