Isotope 和 Masonry jQuery 插件之间的区别

Differences between Isotope and Masonry jQuery plugins(Isotope 和 Masonry jQuery 插件之间的区别)
本文介绍了Isotope 和 Masonry jQuery 插件之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我最近发现了 砌体 和 同位素 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?

推荐答案

摘自作者访谈:

对于某些人来说,同位素看起来与您之前使用 Masonry 所做的工作非常相似;你能解释一下主要区别吗两者之间?

同位素具有 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.

您可以在 此页面.

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

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
Ordinals in words javascript(javascript中的序数)