开发者

jquery masonry - allow for toggle (toggle goes behind div element)

I am using a simple toggle effect.

 //Hide (Collapse) the toggle containers on load
 $(".toggle_container").hide(); 

 //Switch the "Open" and "Close" state per click
 $("h4.trigger").toggle(function(){
  $(this).addClass("active");
  }, function () {
  $(this).removeClass("active");
 });

 //Slide开发者_如何学运维 up and down on click
 $("h4.trigger").click(function(){
  $(this).next(".toggle_container").slideToggle("slow");
 });

And I am using masonry for div layout.

My issue is that the toggle container when toggled, is hidden behind other divs.

see here: http://jasondaydesign.com

thoughts?


I did something similar, but used a setTimeout() to retrigger the masonry call every 50 milliseconds or so.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜