1.0.0 • Published 8 years ago

photostream v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

jQuery.photostream Build Status

jQuery plugin to embed Flickr Photostream on your site.

Screenshot

Install

npm install photostream or bower install photostream

Usage

The basics:

$('#flickr').photostream({
    api_key: '<your key>',
    user_id: '<your id>'
});

Options

OptionDescription
api_keyFlickr API key.
user_idFlickr user ID.
image_sizeSize suffix [sqtmnzcbnko]. Default is m (small, 240 on longest side). Read more here.
image_countMax image count to show. Default is 10.
target<a> target. Default is _blank.

Events

EventDescription
ps.completeFired when photostream is loaded.
ps.errorFired when something goes wrong. For example, wrong API key.

How to create the justified gallery?

By default jQuery.photostream doesn't do nothing with images. If you want to create a cool gallery you can use Justified Gallery.

Here is an example:

$('#flickr').on('ps.complete', function () {
    $(this).justifiedGallery({
        rowHeight: 120,
        lastRow: 'justify',
        captions: true,
        randomize: true,
        border: 4,
    });
});