GrassHopperPebbles.com Demos

JQuery Plugins

gpImageRotate 0.5 - Simple Gallery - Thumb Bottom

The following example displays the gpImageRotate plugin with mode set to simplegallery and the large_display_mode set to anim-border.

The primary_nav's display attribute is set to bottom, so the thumbs will be displayed on the bottom of the large image.

The large_display_mode option is set to anim-border, so the image border will animate to the size of the next image before the image appears.

The thumb_height is set to 75px (the default is 30px).

I also set the show_thumb_nav option to true. If this is not set, the thumb images will wrap within the container.

$(document).ready(function(){
	$("#gpImageRotateCntnr").gpImageRotate({
		mode: 'simplegallery',
		speed: 2000,
		data_map: {
			image_name: 'name'
		},
		primary_nav: {'display': 'bottom', 'thumb_height': '75px', 'show_thumb_nav': true},
		large_display_mode: 'anim-border',
		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;
	height:85px;
	margin-bottom:10px;
	background-color:#727272;
}

.gpImageRotate-Primary-Nav-SlideCntnr {
	float:left;
	padding:0;
	width:365px;
	height:80px;
	overflow:hidden;
	margin-right:5px;
}

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

.gpImageRotate-Primary-Nav ul li {
	float:left;
	display:block;
	cursor:pointer;
	/*height:9px;
	width:9px;*/
	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;
}

a.gpImageRotate-nav-thumb-PrevBtn, a.gpImageRotate-nav-thumb-NextBtn {
	margin-top:25px;
	float:left;
	display:block;
	cursor:pointer;
	width:15px;
	height:30px;
	background-image: url("/assets/gpimagerotate/images/image_rotate_side_nav_30x30.png");
	background-position:0 0;
}

a.gpImageRotate-nav-thumb-NextBtn {
	background-position: 15px 0;
}

.gpImageRotate-SlideCntnr {
	position:relative;
	width:400px;
	height:400px;
	overflow:hidden;
	margin:0;
	padding:0;
}

.gpImageRotate-Slider {
	position:absolute;
	left:0;
	top:0;
	width:5000px;
	margin:0;
	padding:0;
}

a.gpImageRotate-PrevBtn, a.gpImageRotate-NextBtn {
	position:absolute;
	background-image: url("/assets/gpimagerotate/images/image_rotate_side_nav.png");
	top:200px;
	width:34px;
	height:68px;
	opacity: 0.7;
	cursor:pointer;
}

a.gpImageRotate-PrevBtn {
	left:0;
	background-position:0 0;
}

a.gpImageRotate-NextBtn {
	right:0;
	background-position: 34px 0;
}

.gpImageRotate-DisplayCntnr {
	float:left;
	margin:0;
	padding:0;
	width:400px;
	height:410px;
}

.gpImageRotate-GalleryLargeCntnr {
	float:left;
	border: solid thin #727272;
}

IMG {
	border:none;
}	

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

Tags

, , , , , , , , , ,