See http://jasondaydesign.com/masonry_demo/
I have title divs that overlay the underlying box div.
What I am trying to accomplish is when the mouse hovers over the .box div, the div holding the title will either fade out with jquery or just display:none through css.
You need to call .hover()
, like this: (tested)
$('.box:has(div)').hover(
function() { $(this).find('div').fadeOut(); },
function() { $(this).find('div').fadeIn(); }
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.