GrassHopperPebbles.com Demos

JQuery Plugins

gpImageRotate 0.5 - Simple Gallery - Thumb Top

The following example displays the gpImageRotate plugin with mode set to simplegallery.

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

	
$(document).ready(function(){
	$("#gpImageRotateCntnr").gpImageRotate({
		mode: 'simplegallery',
		speed: 2000,
		data_map: {
			image_name: 'name'
		},
		primary_nav: {'display': 'top'},
		image_url: "/assets/gpimagerotate/portfolio.php",
		base_path: "/assets/gpimagerotate/bobmarley/"
	});
});
#gpImageRotateCntnr {
	float:left;
	width:400px;
	margin-left:40px;
	margin-bottom:20px;
}

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

.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;
}

.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-GalleryLargeCntnr {
	float:left;
	border: solid thin #fff;
}

.gpImageRotate-DisplayCntnr {
	float:left;
	margin:0;
	padding:0;
	width:400px;
	height:400px;
	font-family:Arial, Helvetica, sans-serif;
}

.gpImageRotate-TextCntnr {
	color:#fff;
	position:relative;
	/*top:-120px;*/
	background: rgba(85, 85, 85, 0.7);
	/*height:120px;*/
	display:none;
	height:120px;
}

.gpImageRotate-TextCntnr h2 {
	color:#fff;
	font: 16px bold Arial, Helvetica, sans-serif; 
	text-align:center;
	line-height:24px;
}

.gpImageRotate-TextCntnr p {
	color:#fff;
	font: 12px Arial, Helvetica, sans-serif;
	margin:7px; 
}

IMG {
	border:none;
}	

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

Tags

, , , , , , , , , ,