/flickr-justified-gallery

This JQuery plugin uses Miro Mannino's Justified Gallery plugin with the Flickr API to create a Flickr style photo stream

Primary LanguageJavaScriptMIT LicenseMIT

Flickr Justified Gallery

This gallery plugin allows you to create a Flickr photostream-like gallery for your application while still using Flickr to host your image files. The plugin uses the Flickr API to gather a list of recently added public photos for a particular user and displays them in a justified gallery using "Justified Gallery" from Miro Mannino.

Installation

bower install kladd/flickr-justified-gallery

Usage

Follow the directions on Miro Mannino's project page here.

Then replace

$("#mygallery").justifiedGallery();

with

$("#mygallery").flickrJustifiedGallery({
	flickrApiKey: "YOUR_API_KEY",
	flickrUserID: "YOUR_FLICKR_USER_ID",
	flickrPerPage: 12
});

Additional settings can be set through the justifiedGallerySettings parameter.

Here's an example:

$("#mygallery").flickrJustifiedGallery({
	flickrApiKey: "YOUR_API_KEY",
	flickrUserID: "YOUR_FLICKR_USER_ID",
	flickrPerPage: 12,

	justifiedGallerySettings: {
		rowHeight: 212,
		maxRowHeight: 312,
		target: "_blank",
		lastRow: "hide"
	}
});

License

Flickr Justified Gallery is open-sourced software licensed under the MIT license