Isotope和Masonry jQuery插件之间的差异 [英] Differences between Isotope and Masonry jQuery plugins

查看:139
本文介绍了Isotope和Masonry jQuery插件之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I recently discovered the Masonry and Isotope JQuery plugins. They seem to be functionally almost identical and both appear to have the same author. The only obvious difference I can see is the license.

这两者在功能方面有哪些主要区别?你为什么要使用另一个呢?

What are the main differences between these two in terms of functionality? Why would you use one over the other?

推荐答案

摘要与作者的访谈:


对于某些人而言,Isotope看起来与您之前使用Masonry所做的工作非常相似;你能解释两者之间的主要差异
吗?

Isotope有几个Masonry缺乏的功能。砌体基本上是
做一件事,将项目元素放在一个级联排列中。
Isotope内置了Masonry的布局逻辑,但另外,
还有其他几种布局模式可用于动态
位置元素。您甚至可以开发自己的自定义布局模式。

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.

正如我所提到的,它具有内置
in的过滤和排序功能。过滤项目就像传入jQuery选择器:

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利用了那里最好的浏览器功能。
如果浏览器支持
,Isotope不使用典型的左/顶样式定位,而是采用
渐进增强方法并使用CSS变换。这为顶级
浏览器提供了一流的性能。随着硬件加速的推进,WebKit浏览器上的动画看起来很流畅,甚至使用iOS的功能也不那么强大。
CSS转换在CSS转换中表现更好,我将在稍后讨论

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 免费供个人使用

Another difference is license as @AminAriana pointed out. Masonry is under the MIT license, but Isotope is only free for personal use.

您可以在同位素商业许可证 href =http://metafizzy.co/#isotope-license>此页。

You can buy (25$) Isotope commercial license on this page.

这篇关于Isotope和Masonry jQuery插件之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆