GrassHopperPebbles.com Demos

JQuery Plugins

gpImageRotate 0.5 - Simple Gallery - Lightbox

The following example displays the gpImageRotate plugin with mode set to simplegallery and the large_display_mode set to lightbox.
Remember to load the Colorbox plugin when using the lightbox option.

$(document).ready(function(){
	$("#gpImageRotateCntnr").gpImageRotate({
		mode: 'simplegallery',
		speed: 2000,
		data_map: {
			image_name: 'name'
		},
		primary_nav: {'thumb_height': '75px'},
		large_display_mode: 'lightbox',
		image_url: "/assets/gpimagerotate/gallery.php",
		base_path: "/assets/gpimagerotate/bobmarley/"
	});
});
[{"name": "bobmarley.jpg", "image_title": "Bob Marley"},
{"name": "pic1.jpg"},
{"name": "burnin.jpg", "image_title": "Burnin"},
{"name": "pic2.jpg"},
{"name": "confrontation.jpg", "image_title": "Confrontation"},
{"name": "pic3.jpg"},
{"name": "exodus.jpg", "image_title": "Exodus"},
{"name": "pic4.jpg"},
{"name": "rastaman_vibration.jpg", "image_title": "Rastaman Vibration"},
{"name": "pic5.jpg"},
{"name": "survival.jpg", "image_title": "Survival"},
{"name": "pic6.jpg"},
{"name": "uprising.jpg", "image_title": "Uprising"}]	
#gpImageRotateCntnr {
	float:left;
	width:400px;
	margin-left:40px;
	margin-bottom:20px;
}

.gpImageRotate-Primary-Nav {
	float:left;
	width:400px;
	margin-bottom:10px;
	background-color:#727272;
}

.gpImageRotate-Primary-Nav-SlideCntnr {
	float:left;
	padding:0;
	width:400px;
	margin-right:5px;
}

.gpImageRotate-Primary-Nav ul {
	float:left;
	list-style:none;
	margin: 5px 0 0 0;
	padding:0;
	width:400px;
}

.gpImageRotate-Primary-Nav ul li {
	float:left;
	display:block;
	cursor:pointer;
	margin-left:5px;
	padding:0;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb img {
	border: thin solid #000;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb-selected img {
	border-color:#F0A000;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb img:hover {
	border-color:#0000FF;
}

IMG {
	border:none;
}	

For documentation about the gpImageRotate plugin, view the blog post.

Tags

, , , , , , , , , ,