Skip to content

Commit

Permalink
fixed masonry overlay size problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
fusepilot committed Feb 2, 2012
1 parent 5e51eb2 commit cafcee1
Showing 1 changed file with 27 additions and 31 deletions.
58 changes: 27 additions & 31 deletions themes/fusepilot/js/functions.js
Expand Up @@ -41,37 +41,6 @@ $(document).ready(function (){



// add overlay to masonry

$("#masonry .masonry_col").each(function() {
var $col, $overlay;
$col = $(this);
$overlay = $(".masonry_col_overlay", $col);
$overlay.css('width', $col.width());
$overlay.css('height', $col.height() - 1);

$col.hover(function() {
$overlay.clearQueue().show().css({
top: -160,
opacity: 0
}).animate({
top: 0,
opacity: .9
}, 100);
}, function() {
$overlay.clearQueue().animate({
//top: 160,
opacity: 0,
}, 300, function() {
$overlay.hide();
});
});
});






// sets the width of the category meters

Expand Down Expand Up @@ -132,6 +101,33 @@ $(document).ready(function (){
});

$(window).load(function() {
// add overlay to masonry

$("#masonry .masonry_col").each(function() {
var $col, $overlay;
$col = $(this);
$overlay = $(".masonry_col_overlay", $col);
$overlay.css('width', $col.width());
$overlay.css('height', $col.height() - 1);

$col.hover(function() {
$overlay.clearQueue().show().css({
top: -160,
opacity: 0
}).animate({
top: 0,
opacity: .9
}, 100);
}, function() {
$overlay.clearQueue().animate({
//top: 160,
opacity: 0,
}, 300, function() {
$overlay.hide();
});
});
});

// flex galleries

if($.fn.flexslider) {
Expand Down

0 comments on commit cafcee1

Please sign in to comment.