简体   繁体   English

Google+平铺的照片库

[英]Google+ style tiled photo gallery

Has anyone seen a javascript library that will generate a photo gallery similar to the way Google+, and now Facebook, organizes photos where some are cropped, but the all seamlessly fill a space. 有没有人看到过一个JavaScript库,该库将生成类似于Google+的照片库,现在是Facebook,可以在其中裁剪了一些照片的情况下组织照片,但是所有照片都无缝地填充了空间。

Something like this: 像这样:

在此处输入图片说明

I was doing some digging around and found this. 我正在挖掘一些东西,发现了这个。 It's a bit different, but it still looks nice. 有点不同,但是看起来仍然不错。 The only thing missing is the photo popping out. 唯一缺少的是弹出的照片。

http://masonry.desandro.com/ http://masonry.desandro.com/

我一直在寻找类似的东西,现在已经看到了一些,它基于jQuery: http : //moewashere.com/jglance ,这对指导很有帮助: http : //www.techbits.de/2011/10/ 25 /建立一个Google+灵感图片库/

I've created a wordpress plugin that mimics the Google+ Gallery. 我创建了一个模仿Google+图库的wordpress插件。 The files in the js folder will be handy if you want to write a pure jquery version of this. 如果要编写纯jquery版本的js文件夹中的文件,将很方便。 Might do this myself later. 以后可能自己做。

Demo Plugin 演示 插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM