javascript - Isotope 和 Masonry jQuery 插件之间的区别

标签 javascript jquery jquery-plugins jquery-masonry jquery-isotope

<分区>

我最近发现了 MasonryIsotope JQuery 插件。它们在功能上似乎几乎相同,并且似乎都具有相同的作者。我能看到的唯一明显区别是许可证。

这两者在功能方面的主要区别是什么?你为什么要用一个而不是另一个?

最佳答案

作者采访节选:

To some people Isotope would look very similar to the work you had previously done with Masonry; can you explain the main differences between the two?

Isotope has several features that Masonry lacks. Masonry essentially does one thing, placing item elements in a cascading arrangement. Isotope has Masonry’s layout logic built in, but in addition, it also has several other layout modes that can be used to dynamically position elements. You can even develop your own custom layout mode.

As I’ve mentioned, it has filtering and sorting functionality built in. Filtering items is as easy as passing in a jQuery selector:

$('#container').isotope({ filter: '.my-selector' });

Isotope takes advantage of the best browser features out there. Instead of using typical left/top styles positioning, Isotope takes a progressive enhancement approach and uses CSS transforms if supported by the browser. This provides for top-notch performance for top-notch browsers. With hardware acceleration kicking in, animations look silky smooth on WebKit browsers, and even less-powerful devices using iOS. CSS transforms perform better with CSS transitions, which I’ll discuss later.

@AminAriana 指出,另一个区别是许可。 Masonry 遵循MIT 许可,但Isotope免费供个人使用

您可以购买(25 美元)Isotope commercial licensethis page .

关于javascript - Isotope 和 Masonry jQuery 插件之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8856893/

相关文章:

javascript - Angular:格式化时刻以在 html 中显示为日期

javascript - CodeIgniter 查看输入问题

javascript - jquery .not() 不适用于 live()

javascript - 将 html 文本添加到超大 jquery 图像幻灯片

jquery - DataTables & JQuery Jeditable,如何传入行数据?

javascript - d3.js:从时间尺度获取刻度格式

javascript - 是否有使用 anchor 标记中的参数调用 JavaScript 的最佳实践?

javascript - 在 JavaScript 计数器中使用主机日期

javascript - jQuery 'delete' 运算符还会删除先前设置的对象

javascript - 如何合并 jquery 自动完成和 fcbkListSelection 功能?