There is no direct way to this at run time but you can tweak it around by doing like this by hiding it with another div
<pre lang="Javascript">if(condition1){
var width = filterBtns.eq(0).outerWidth();
var height = filterBtns.eq(0).outerHeight();
filterBtns.each( function(index){
var position = $(this).offset();
$("<div class='cover'>").css({
"width": width,
"height": height,
"position": "absolute",
"top": position.top,
"left": position.left
}).appendTo($("body"));
});
}
else {
$(".cover").remove();
}