javascript - Isotope Gallery Error: Uncaught Error No layout mode packery line 8 - Stack Overflow

I am trying to use packery as a layout for my gallery. I am using fancybox with the isotope gallery. I

I am trying to use packery as a layout for my gallery. I am using fancybox with the isotope gallery. I don't see fancybox being the issue.

I'm using isotope v2 and the latest packery download. Every single other layout works, even the ones not included in isotope js like fitRows and fitColumns. But with packery I get this error from isotope:

Uncaught Error: No layout mode: packery isotope.pkgd.js line 8

Here is an example on codepen:

JS:

jQuery('.fancybox').fancybox({
        openEffect: 'none',
        closeEffect: 'none'
    }); 

$('#testing').isotope({
   'layoutMode': 'packery';
  'itemSelector' :'.item';
});

I am trying to use packery as a layout for my gallery. I am using fancybox with the isotope gallery. I don't see fancybox being the issue.

I'm using isotope v2 and the latest packery download. Every single other layout works, even the ones not included in isotope js like fitRows and fitColumns. But with packery I get this error from isotope:

Uncaught Error: No layout mode: packery isotope.pkgd.js line 8

Here is an example on codepen: http://codepen.io/anon/pen/QwXEvr

JS:

jQuery('.fancybox').fancybox({
        openEffect: 'none',
        closeEffect: 'none'
    }); 

$('#testing').isotope({
   'layoutMode': 'packery';
  'itemSelector' :'.item';
});
Share Improve this question edited Apr 9, 2015 at 15:11 Jstesting asked Apr 9, 2015 at 14:35 JstestingJstesting 552 silver badges8 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

There are two Packery's, the packery layoutmode that you want, for isotope and the actual library called packery. You are loading the library, which gives you the error. They are not the same. Download and install the isotope packery layout js and you will see it work.

Here is an updated codepen

$('#testing').isotope({
'layoutMode': 'packery',
'itemSelector' :'.item'
});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744293255a4567135.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信