PrettyPhoto – The sexy way to show images on a site

I was very recently made aware of the presence of a very decent version of what we call ‘thickbox’ or ‘lightbox’. My supervisor sent me the link and at first I whined in my head about having to deal with yet another piece of dung version of something that COULD be nice, but never quite made it.

PrettyPhoto has at least changed my mind about it. There are things that need to be worked on, but it is a very good, usable version. It allows you to enter a title (image alt), a description (link title), and then setting the link’s rel to ‘prettyPhoto ‘ for a single image or ‘prettyPhoto[ gallery ]’ for an image that you’d like to contain in a gallery (this shows the 1 of 3, etc when you open the image).

Here are the defaults you’re given when putting it in your code :

animationSpeed: ‘normal’, /* fast/slow/normal */

padding: 40, /* padding for each side of the picture */

opacity: 0.35, /* Value betwee 0 and 1 */

showTitle: true, /* true/false */

allowresize: true, /* true/false */

counter_separator_label: ‘/’, /* The separator for the gallery counter 1 “of” 2 */

theme: ‘light_rounded’ /* light_rounded / dark_rounded / light_square / dark_square */

I’d go into full detail about the project, but you really need to go see it for yourself and Try it out! Also available as a WP plugin!

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]