JavaScript
Article

Photofy.js – jQuery Random Photo Plugin

By Sam Deering

photofy

This new little plugin randomizes a collection of images from a parent container or from an image feed, and then randomly displays them with an animated effect. All that’s needed is one line of javascript, a tiny amount of css and of course some images.

The demo created gives the effect of new photos being taken, which is a great idea for photographers. However there are many other uses, as it was first created for an online store where product images are shown on the home screen so that that potential customers were instantly able to see what the site had for sale.

The plugin is made to be easy to use, and fully integrates with jQuery. So to initialize the plugin, you would just do $(“#my-image-wrapper”).photofy();

Demo
Download

jQuery Code


 

HTML Code

  • http://gfxlegends.com/forums/ George T. Wiliam

    Thanks Buddybud,

    Will put it to good use!

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.