Google+ style tiled photo gallery

2019-03-16 08:30发布

问题:

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.

Something like this:

回答1:

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/



回答2:

I was looking for something similar and I've seen a couple now, this builds on jQuery: http://moewashere.com/jglance and this is really helpful guide: http://www.techbits.de/2011/10/25/building-a-google-plus-inspired-image-gallery/



回答3:

I've created a wordpress plugin that mimics the Google+ Gallery. The files in the js folder will be handy if you want to write a pure jquery version of this. Might do this myself later.

Demo Plugin