Skip to main content

Photofy.js – jQuery Random Photo Plugin

By Sam Deering

JavaScript

Share:

Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95

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

Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.

New books out now!

Learn valuable skills with a practical introduction to Python programming!


Give yourself more options and write higher quality CSS with CSS Optimization Basics.